LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MCAsmInfoCOFF.cpp
Go to the documentation of this file.
1 //===-- MCAsmInfoCOFF.cpp - COFF asm properties -----------------*- C++ -*-===//
2 //
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 
15 #include "llvm/MC/MCAsmInfoCOFF.h"
16 using namespace llvm;
17 
18 void MCAsmInfoCOFF::anchor() { }
19 
21  GlobalPrefix = "_";
22  // MingW 4.5 and later support .comm with log2 alignment, but .lcomm uses byte
23  // alignment.
28  PrivateGlobalPrefix = "L"; // Prefix for private global symbols
29  WeakRefDirective = "\t.weak\t";
30  LinkOnceDirective = "\t.linkonce discard\n";
31 
32  // Doesn't support visibility:
35 
36  // Set up DWARF directives
37  HasLEB128 = true; // Target asm supports leb128 directives (little-endian)
41 }
42 
43 void MCAsmInfoMicrosoft::anchor() { }
44 
46 }
47 
48 void MCAsmInfoGNUCOFF::anchor() { }
49 
51 
52 }
bool HasSingleParameterDotFile
Definition: MCAsmInfo.h:255
LCOMM::LCOMMType LCOMMDirectiveAlignmentType
Definition: MCAsmInfo.h:247
Not a valid directive.
Definition: MCDirectives.h:20
const char * GlobalPrefix
Definition: MCAsmInfo.h:120
bool HasDotTypeDotSizeDirective
Definition: MCAsmInfo.h:251
const char * PrivateGlobalPrefix
Definition: MCAsmInfo.h:125
bool HasMicrosoftFastStdCallMangling
Definition: MCAsmInfo.h:204
MCSymbolAttr HiddenVisibilityAttr
Definition: MCAsmInfo.h:279
bool COMMDirectiveAlignmentIsInBytes
Definition: MCAsmInfo.h:243
bool SupportsDebugInformation
Definition: MCAsmInfo.h:297
const char * WeakRefDirective
Definition: MCAsmInfo.h:267
bool HasLEB128
HasLEB128 - True if target asm supports leb128 directives.
Definition: MCAsmInfo.h:293
MCSymbolAttr ProtectedVisibilityAttr
Definition: MCAsmInfo.h:288
bool NeedsDwarfSectionOffsetDirective
Definition: MCAsmInfo.h:206
const char * LinkOnceDirective
Definition: MCAsmInfo.h:275
MCSymbolAttr HiddenDeclarationVisibilityAttr
Definition: MCAsmInfo.h:283