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 MCAsmInfoCOFF()18MCAsmInfoCOFF::MCAsmInfoCOFF() { 19 // MingW 4.5 and later support .comm with log2 alignment, but .lcomm uses byte 20 // alignment. 21 COMMDirectiveAlignmentIsInBytes = false; 22 LCOMMDirectiveAlignmentType = LCOMM::ByteAlignment; 23 HasDotTypeDotSizeDirective = false; 24 HasSingleParameterDotFile = false; 25 WeakRefDirective = "\t.weak\t"; 26 HasLinkOnceDirective = true; 27 28 // Doesn't support visibility: 29 HiddenVisibilityAttr = HiddenDeclarationVisibilityAttr = MCSA_Invalid; 30 ProtectedVisibilityAttr = MCSA_Invalid; 31 32 // Set up DWARF directives 33 SupportsDebugInformation = true; 34 NeedsDwarfSectionOffsetDirective = true; 35 36 UseIntegratedAssembler = true; 37 38 // At least MSVC inline-asm does AShr. 39 UseLogicalShr = false; 40 } 41 MCAsmInfoMicrosoft()42MCAsmInfoMicrosoft::MCAsmInfoMicrosoft() { 43 } 44 MCAsmInfoGNUCOFF()45MCAsmInfoGNUCOFF::MCAsmInfoGNUCOFF() { 46 47 } 48