MCAsmInfoCOFF.cpp revision 205218
169107Sru//===-- MCAsmInfoCOFF.cpp - COFF asm properties -----------------*- C++ -*-===//
269107Sru//
369107Sru//                     The LLVM Compiler Infrastructure
469107Sru//
569107Sru// This file is distributed under the University of Illinois Open Source
669107Sru// License. See LICENSE.TXT for details.
769107Sru//
869107Sru//===----------------------------------------------------------------------===//
969107Sru//
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"
16#include "llvm/ADT/SmallVector.h"
17using namespace llvm;
18
19MCAsmInfoCOFF::MCAsmInfoCOFF() {
20  GlobalPrefix = "_";
21  COMMDirectiveAlignmentIsInBytes = false;
22  HasLCOMMDirective = true;
23  HasDotTypeDotSizeDirective = false;
24  HasSingleParameterDotFile = false;
25  PrivateGlobalPrefix = "L";  // Prefix for private global symbols
26  WeakRefDirective = "\t.weak\t";
27  LinkOnceDirective = "\t.linkonce discard\n";
28
29  // Doesn't support visibility:
30  HiddenVisibilityAttr = ProtectedVisibilityAttr = MCSA_Invalid;
31
32  // Set up DWARF directives
33  HasLEB128 = true;  // Target asm supports leb128 directives (little-endian)
34  AbsoluteDebugSectionOffsets = true;
35  AbsoluteEHSectionOffsets = false;
36  SupportsDebugInformation = true;
37  DwarfSectionOffsetDirective = "\t.secrel32\t";
38  HasMicrosoftFastStdCallMangling = true;
39}
40