blob: f1f742e787b0a7e8d5b21997f24f35e7643ef525 [file] [log] [blame]
Chris Lattner40412e72009-07-27 16:45:59 +00001//===-- COFFTargetAsmInfo.cpp - COFF asm properties -------------*- C++ -*-===//
2//
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
15#include "llvm/Target/COFFTargetAsmInfo.h"
16#include "llvm/ADT/SmallVector.h"
17using namespace llvm;
18
19COFFTargetAsmInfo::COFFTargetAsmInfo(const TargetMachine &TM)
20 : TargetAsmInfo(TM) {
21
Chris Lattner40412e72009-07-27 16:45:59 +000022 GlobalPrefix = "_";
23 LCOMMDirective = "\t.lcomm\t";
24 COMMDirectiveTakesAlignment = false;
25 HasDotTypeDotSizeDirective = false;
26 HasSingleParameterDotFile = false;
27 StaticCtorsSection = "\t.section .ctors,\"aw\"";
28 StaticDtorsSection = "\t.section .dtors,\"aw\"";
29 HiddenDirective = NULL;
30 PrivateGlobalPrefix = "L"; // Prefix for private global symbols
31 WeakRefDirective = "\t.weak\t";
32 SetDirective = "\t.set\t";
33
34 // Set up DWARF directives
35 HasLEB128 = true; // Target asm supports leb128 directives (little-endian)
36 AbsoluteDebugSectionOffsets = true;
37 AbsoluteEHSectionOffsets = false;
38 SupportsDebugInformation = true;
39 DwarfSectionOffsetDirective = "\t.secrel32\t";
40 DwarfAbbrevSection = "\t.section\t.debug_abbrev,\"dr\"";
41 DwarfInfoSection = "\t.section\t.debug_info,\"dr\"";
42 DwarfLineSection = "\t.section\t.debug_line,\"dr\"";
43 DwarfFrameSection = "\t.section\t.debug_frame,\"dr\"";
44 DwarfPubNamesSection ="\t.section\t.debug_pubnames,\"dr\"";
45 DwarfPubTypesSection ="\t.section\t.debug_pubtypes,\"dr\"";
46 DwarfStrSection = "\t.section\t.debug_str,\"dr\"";
47 DwarfLocSection = "\t.section\t.debug_loc,\"dr\"";
48 DwarfARangesSection = "\t.section\t.debug_aranges,\"dr\"";
49 DwarfRangesSection = "\t.section\t.debug_ranges,\"dr\"";
50 DwarfMacroInfoSection = "\t.section\t.debug_macinfo,\"dr\"";
51}
52