MCAsmInfoCOFF.cpp revision 1a005cec5a7a0eaa1a43f32c6eaf7ff812e3d382
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" 16using namespace llvm; 17 18void MCAsmInfoCOFF::anchor() { } 19 20MCAsmInfoCOFF::MCAsmInfoCOFF() { 21 GlobalPrefix = "_"; 22 COMMDirectiveAlignmentIsInBytes = true; 23 LCOMMDirectiveSupportsAlignment = true; 24 HasDotTypeDotSizeDirective = false; 25 HasSingleParameterDotFile = false; 26 PrivateGlobalPrefix = "L"; // Prefix for private global symbols 27 WeakRefDirective = "\t.weak\t"; 28 LinkOnceDirective = "\t.linkonce discard\n"; 29 30 // Doesn't support visibility: 31 HiddenVisibilityAttr = HiddenDeclarationVisibilityAttr = MCSA_Invalid; 32 ProtectedVisibilityAttr = MCSA_Invalid; 33 34 // Set up DWARF directives 35 HasLEB128 = true; // Target asm supports leb128 directives (little-endian) 36 SupportsDebugInformation = true; 37 DwarfSectionOffsetDirective = "\t.secrel32\t"; 38 HasMicrosoftFastStdCallMangling = true; 39} 40 41void MCAsmInfoMicrosoft::anchor() { } 42 43MCAsmInfoMicrosoft::MCAsmInfoMicrosoft() { 44 AllowQuotesInName = true; 45} 46 47void MCAsmInfoGNUCOFF::anchor() { } 48 49MCAsmInfoGNUCOFF::MCAsmInfoGNUCOFF() { 50 51} 52