freebsd-dev/lib/MC/MCAsmInfoCOFF.cpp

54 lines
1.6 KiB
C++
Raw Normal View History

2009-10-14 17:57:32 +00:00
//===-- MCAsmInfoCOFF.cpp - COFF asm properties -----------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file defines target asm properties related what form asm statements
// should take in general on COFF-based targets
//
//===----------------------------------------------------------------------===//
#include "llvm/MC/MCAsmInfoCOFF.h"
using namespace llvm;
void MCAsmInfoCOFF::anchor() { }
2009-10-14 17:57:32 +00:00
MCAsmInfoCOFF::MCAsmInfoCOFF() {
GlobalPrefix = "_";
2010-02-16 09:30:23 +00:00
COMMDirectiveAlignmentIsInBytes = false;
LCOMMDirectiveType = LCOMM::ByteAlignment;
2009-10-14 17:57:32 +00:00
HasDotTypeDotSizeDirective = false;
HasSingleParameterDotFile = false;
PrivateGlobalPrefix = "L"; // Prefix for private global symbols
WeakRefDirective = "\t.weak\t";
2010-02-16 09:30:23 +00:00
LinkOnceDirective = "\t.linkonce discard\n";
2010-01-23 11:09:33 +00:00
// Doesn't support visibility:
HiddenVisibilityAttr = HiddenDeclarationVisibilityAttr = MCSA_Invalid;
ProtectedVisibilityAttr = MCSA_Invalid;
2009-10-14 17:57:32 +00:00
// Set up DWARF directives
HasLEB128 = true; // Target asm supports leb128 directives (little-endian)
SupportsDebugInformation = true;
DwarfSectionOffsetDirective = "\t.secrel32\t";
2010-03-16 16:51:38 +00:00
HasMicrosoftFastStdCallMangling = true;
SupportsDataRegions = false;
2009-10-14 17:57:32 +00:00
}
void MCAsmInfoMicrosoft::anchor() { }
MCAsmInfoMicrosoft::MCAsmInfoMicrosoft() {
AllowQuotesInName = true;
}
void MCAsmInfoGNUCOFF::anchor() { }
MCAsmInfoGNUCOFF::MCAsmInfoGNUCOFF() {
}