1 //===-- MCAsmInfoCOFF.cpp - COFF asm properties -----------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines target asm properties related what form asm statements
11 // should take in general on COFF-based targets
13 //===----------------------------------------------------------------------===//
15 #include "llvm/MC/MCAsmInfoCOFF.h"
18 void MCAsmInfoCOFF::anchor() { }
20 MCAsmInfoCOFF::MCAsmInfoCOFF() {
22 // MingW 4.5 and later support .comm with log2 alignment, but .lcomm uses byte
24 COMMDirectiveAlignmentIsInBytes = false;
25 LCOMMDirectiveAlignmentType = LCOMM::ByteAlignment;
26 HasDotTypeDotSizeDirective = false;
27 HasSingleParameterDotFile = false;
28 WeakRefDirective = "\t.weak\t";
29 HasLinkOnceDirective = true;
31 // Doesn't support visibility:
32 HiddenVisibilityAttr = HiddenDeclarationVisibilityAttr = MCSA_Invalid;
33 ProtectedVisibilityAttr = MCSA_Invalid;
35 // Set up DWARF directives
36 HasLEB128 = true; // Target asm supports leb128 directives (little-endian)
37 SupportsDebugInformation = true;
38 HasMicrosoftFastStdCallMangling = true;
39 NeedsDwarfSectionOffsetDirective = true;
42 void MCAsmInfoMicrosoft::anchor() { }
44 MCAsmInfoMicrosoft::MCAsmInfoMicrosoft() {
47 void MCAsmInfoGNUCOFF::anchor() { }
49 MCAsmInfoGNUCOFF::MCAsmInfoGNUCOFF() {