blob: 678e75af5dab4e8c72c3a7f6c82cff164307ac62 [file] [log] [blame]
Chris Lattner2807afa2009-08-22 21:03:30 +00001//===-- MCAsmInfoCOFF.cpp - COFF asm properties -----------------*- C++ -*-===//
Chris Lattner40412e72009-07-27 16:45:59 +00002//
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
Chris Lattneraf76e592009-08-22 20:48:53 +000015#include "llvm/MC/MCAsmInfoCOFF.h"
Chris Lattner40412e72009-07-27 16:45:59 +000016using namespace llvm;
17
David Blaikie2d24e2a2011-12-20 02:50:00 +000018void MCAsmInfoCOFF::anchor() { }
19
Chris Lattner8eeba352010-01-20 06:34:14 +000020MCAsmInfoCOFF::MCAsmInfoCOFF() {
Chris Lattner40412e72009-07-27 16:45:59 +000021 GlobalPrefix = "_";
Rafael Espindola2e2563b2010-01-26 20:21:43 +000022 COMMDirectiveAlignmentIsInBytes = false;
Benjamin Kramer36a16012011-09-01 23:04:27 +000023 LCOMMDirectiveType = LCOMM::ByteAlignment;
Chris Lattner40412e72009-07-27 16:45:59 +000024 HasDotTypeDotSizeDirective = false;
25 HasSingleParameterDotFile = false;
Chris Lattner40412e72009-07-27 16:45:59 +000026 PrivateGlobalPrefix = "L"; // Prefix for private global symbols
27 WeakRefDirective = "\t.weak\t";
Chris Lattner111a3192010-01-26 23:51:52 +000028 LinkOnceDirective = "\t.linkonce discard\n";
Jim Grosbach2684d9e2012-05-11 01:41:30 +000029
Chris Lattner152a29b2010-01-23 06:53:23 +000030 // Doesn't support visibility:
Eli Friedman7666c7e2011-09-23 00:13:02 +000031 HiddenVisibilityAttr = HiddenDeclarationVisibilityAttr = MCSA_Invalid;
32 ProtectedVisibilityAttr = MCSA_Invalid;
Chris Lattner40412e72009-07-27 16:45:59 +000033
34 // Set up DWARF directives
35 HasLEB128 = true; // Target asm supports leb128 directives (little-endian)
Chris Lattner40412e72009-07-27 16:45:59 +000036 SupportsDebugInformation = true;
37 DwarfSectionOffsetDirective = "\t.secrel32\t";
Chris Lattner8a29fa62010-03-12 21:03:47 +000038 HasMicrosoftFastStdCallMangling = true;
Chris Lattner40412e72009-07-27 16:45:59 +000039}
Michael J. Spencer116bc792011-11-29 18:00:06 +000040
David Blaikie2d24e2a2011-12-20 02:50:00 +000041void MCAsmInfoMicrosoft::anchor() { }
42
Michael J. Spencer116bc792011-11-29 18:00:06 +000043MCAsmInfoMicrosoft::MCAsmInfoMicrosoft() {
44 AllowQuotesInName = true;
45}
46
David Blaikie2d24e2a2011-12-20 02:50:00 +000047void MCAsmInfoGNUCOFF::anchor() { }
48
Michael J. Spencer116bc792011-11-29 18:00:06 +000049MCAsmInfoGNUCOFF::MCAsmInfoGNUCOFF() {
50
51}