2017-04-16 16:01:22 +00:00
|
|
|
//===- 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"
|
2017-04-16 16:01:22 +00:00
|
|
|
#include "llvm/MC/MCDirectives.h"
|
|
|
|
|
2009-10-14 17:57:32 +00:00
|
|
|
using namespace llvm;
|
|
|
|
|
2017-04-16 16:01:22 +00:00
|
|
|
void MCAsmInfoCOFF::anchor() {}
|
2012-04-14 13:54:10 +00:00
|
|
|
|
2009-10-14 17:57:32 +00:00
|
|
|
MCAsmInfoCOFF::MCAsmInfoCOFF() {
|
2012-12-02 13:10:19 +00:00
|
|
|
// 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;
|
2012-12-02 13:10:19 +00:00
|
|
|
LCOMMDirectiveAlignmentType = LCOMM::ByteAlignment;
|
2009-10-14 17:57:32 +00:00
|
|
|
HasDotTypeDotSizeDirective = false;
|
|
|
|
HasSingleParameterDotFile = false;
|
|
|
|
WeakRefDirective = "\t.weak\t";
|
2014-05-11 18:24:26 +00:00
|
|
|
HasLinkOnceDirective = true;
|
2012-08-15 19:34:23 +00:00
|
|
|
|
2010-01-23 11:09:33 +00:00
|
|
|
// Doesn't support visibility:
|
2011-10-20 21:10:27 +00:00
|
|
|
HiddenVisibilityAttr = HiddenDeclarationVisibilityAttr = MCSA_Invalid;
|
|
|
|
ProtectedVisibilityAttr = MCSA_Invalid;
|
2009-10-14 17:57:32 +00:00
|
|
|
|
|
|
|
// Set up DWARF directives
|
|
|
|
SupportsDebugInformation = true;
|
2013-06-10 20:36:52 +00:00
|
|
|
NeedsDwarfSectionOffsetDirective = true;
|
2014-11-24 09:08:18 +00:00
|
|
|
|
|
|
|
UseIntegratedAssembler = true;
|
2015-05-27 18:44:32 +00:00
|
|
|
|
2015-12-30 11:46:15 +00:00
|
|
|
// At least MSVC inline-asm does AShr.
|
2015-05-27 18:44:32 +00:00
|
|
|
UseLogicalShr = false;
|
2009-10-14 17:57:32 +00:00
|
|
|
}
|
2012-04-14 13:54:10 +00:00
|
|
|
|
2017-04-16 16:01:22 +00:00
|
|
|
void MCAsmInfoMicrosoft::anchor() {}
|
2012-04-14 13:54:10 +00:00
|
|
|
|
2017-04-16 16:01:22 +00:00
|
|
|
MCAsmInfoMicrosoft::MCAsmInfoMicrosoft() = default;
|
2012-04-14 13:54:10 +00:00
|
|
|
|
2017-04-16 16:01:22 +00:00
|
|
|
void MCAsmInfoGNUCOFF::anchor() {}
|
2012-04-14 13:54:10 +00:00
|
|
|
|
2017-04-16 16:01:22 +00:00
|
|
|
MCAsmInfoGNUCOFF::MCAsmInfoGNUCOFF() = default;
|