Unweaken vtables as per http://llvm.org/docs/CodingStandards.html#ll_virtual_anch
[oota-llvm.git] / lib / MC / MCAsmInfoCOFF.cpp
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 #include "llvm/ADT/SmallVector.h"
17 using namespace llvm;
18
19 void MCAsmInfoCOFF::anchor() { }
20
21 MCAsmInfoCOFF::MCAsmInfoCOFF() {
22   GlobalPrefix = "_";
23   COMMDirectiveAlignmentIsInBytes = false;
24   LCOMMDirectiveType = LCOMM::ByteAlignment;
25   HasDotTypeDotSizeDirective = false;
26   HasSingleParameterDotFile = false;
27   PrivateGlobalPrefix = "L";  // Prefix for private global symbols
28   WeakRefDirective = "\t.weak\t";
29   LinkOnceDirective = "\t.linkonce discard\n";
30   
31   // Doesn't support visibility:
32   HiddenVisibilityAttr = HiddenDeclarationVisibilityAttr = MCSA_Invalid;
33   ProtectedVisibilityAttr = MCSA_Invalid;
34
35   // Set up DWARF directives
36   HasLEB128 = true;  // Target asm supports leb128 directives (little-endian)
37   SupportsDebugInformation = true;
38   DwarfSectionOffsetDirective = "\t.secrel32\t";
39   HasMicrosoftFastStdCallMangling = true;
40
41   SupportsDataRegions = false;
42 }
43
44 void MCAsmInfoMicrosoft::anchor() { }
45
46 MCAsmInfoMicrosoft::MCAsmInfoMicrosoft() {
47   AllowQuotesInName = true;
48 }
49
50 void MCAsmInfoGNUCOFF::anchor() { }
51
52 MCAsmInfoGNUCOFF::MCAsmInfoGNUCOFF() {
53
54 }