xref: /NextBSD/contrib/llvm/lib/MC/MCAsmInfoCOFF.cpp (revision 84d351007654069f9643c8e4b4802a7f5f08ee42)
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 
anchor()18 void MCAsmInfoCOFF::anchor() { }
19 
MCAsmInfoCOFF()20 MCAsmInfoCOFF::MCAsmInfoCOFF() {
21   // MingW 4.5 and later support .comm with log2 alignment, but .lcomm uses byte
22   // alignment.
23   COMMDirectiveAlignmentIsInBytes = false;
24   LCOMMDirectiveAlignmentType = LCOMM::ByteAlignment;
25   HasDotTypeDotSizeDirective = false;
26   HasSingleParameterDotFile = false;
27   WeakRefDirective = "\t.weak\t";
28   HasLinkOnceDirective = true;
29 
30   // Doesn't support visibility:
31   HiddenVisibilityAttr = HiddenDeclarationVisibilityAttr = MCSA_Invalid;
32   ProtectedVisibilityAttr = MCSA_Invalid;
33 
34   // Set up DWARF directives
35   SupportsDebugInformation = true;
36   NeedsDwarfSectionOffsetDirective = true;
37 
38   UseIntegratedAssembler = true;
39 
40   // FIXME: For now keep the previous behavior, AShr. Need to double-check
41   // other COFF-targeting assemblers and change this if necessary.
42   UseLogicalShr = false;
43 }
44 
anchor()45 void MCAsmInfoMicrosoft::anchor() { }
46 
MCAsmInfoMicrosoft()47 MCAsmInfoMicrosoft::MCAsmInfoMicrosoft() {
48 }
49 
anchor()50 void MCAsmInfoGNUCOFF::anchor() { }
51 
MCAsmInfoGNUCOFF()52 MCAsmInfoGNUCOFF::MCAsmInfoGNUCOFF() {
53 
54 }
55