freebsd-dev/contrib/llvm/lib/MC/MCAsmInfoCOFF.cpp

53 lines
1.5 KiB
C++
Raw Normal View History

//===- MCAsmInfoCOFF.cpp - COFF asm properties ----------------------------===//
2009-10-14 17:57:32 +00:00
//
// 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"
#include "llvm/MC/MCDirectives.h"
2009-10-14 17:57:32 +00:00
using namespace llvm;
void MCAsmInfoCOFF::anchor() {}
2009-10-14 17:57:32 +00:00
MCAsmInfoCOFF::MCAsmInfoCOFF() {
// MingW 4.5 and later support .comm with log2 alignment, but .lcomm uses byte
// alignment.
2010-02-16 09:30:23 +00:00
COMMDirectiveAlignmentIsInBytes = false;
LCOMMDirectiveAlignmentType = LCOMM::ByteAlignment;
2009-10-14 17:57:32 +00:00
HasDotTypeDotSizeDirective = false;
HasSingleParameterDotFile = false;
WeakRefDirective = "\t.weak\t";
HasLinkOnceDirective = true;
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
SupportsDebugInformation = true;
NeedsDwarfSectionOffsetDirective = true;
UseIntegratedAssembler = true;
// At least MSVC inline-asm does AShr.
UseLogicalShr = false;
2009-10-14 17:57:32 +00:00
}
void MCAsmInfoMicrosoft::anchor() {}
MCAsmInfoMicrosoft::MCAsmInfoMicrosoft() = default;
void MCAsmInfoGNUCOFF::anchor() {}
MCAsmInfoGNUCOFF::MCAsmInfoGNUCOFF() = default;