blob: cf6026b4ef8447fe86fd4d5a88e0ffab7ef10709 [file] [log] [blame]
Chris Lattner05457462009-08-22 21:03:30 +00001//===-- MCAsmInfoCOFF.cpp - COFF asm properties -----------------*- C++ -*-===//
Chris Lattner1814e812009-07-27 16:45:59 +00002//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file defines target asm properties related what form asm statements
11// should take in general on COFF-based targets
12//
13//===----------------------------------------------------------------------===//
14
Chris Lattner7b26fce2009-08-22 20:48:53 +000015#include "llvm/MC/MCAsmInfoCOFF.h"
Chris Lattner1814e812009-07-27 16:45:59 +000016#include "llvm/ADT/SmallVector.h"
17using namespace llvm;
18
Chris Lattner2b4364f2010-01-20 06:34:14 +000019MCAsmInfoCOFF::MCAsmInfoCOFF() {
Chris Lattner1814e812009-07-27 16:45:59 +000020 GlobalPrefix = "_";
Rafael Espindoladcb03f02010-01-26 20:21:43 +000021 COMMDirectiveAlignmentIsInBytes = false;
Benjamin Kramer63970512011-09-01 23:04:27 +000022 LCOMMDirectiveType = LCOMM::ByteAlignment;
Chris Lattner1814e812009-07-27 16:45:59 +000023 HasDotTypeDotSizeDirective = false;
24 HasSingleParameterDotFile = false;
Chris Lattner1814e812009-07-27 16:45:59 +000025 PrivateGlobalPrefix = "L"; // Prefix for private global symbols
26 WeakRefDirective = "\t.weak\t";
Chris Lattnerfc2e3762010-01-26 23:51:52 +000027 LinkOnceDirective = "\t.linkonce discard\n";
Chris Lattner0bfd2792010-01-23 06:53:23 +000028
29 // Doesn't support visibility:
30 HiddenVisibilityAttr = ProtectedVisibilityAttr = MCSA_Invalid;
Chris Lattner1814e812009-07-27 16:45:59 +000031
32 // Set up DWARF directives
33 HasLEB128 = true; // Target asm supports leb128 directives (little-endian)
Chris Lattner1814e812009-07-27 16:45:59 +000034 SupportsDebugInformation = true;
35 DwarfSectionOffsetDirective = "\t.secrel32\t";
Chris Lattner8d99c762010-03-12 21:03:47 +000036 HasMicrosoftFastStdCallMangling = true;
Chris Lattner1814e812009-07-27 16:45:59 +000037}