blob: 64f87c0646a13dd80304b76c07152cfb89dc24c9 [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
Chris Lattner8d4a0a32009-08-02 04:27:24 +000019COFFTargetAsmInfo::COFFTargetAsmInfo() {
Chris Lattner40412e72009-07-27 16:45:59 +000020 GlobalPrefix = "_";
21 LCOMMDirective = "\t.lcomm\t";
22 COMMDirectiveTakesAlignment = false;
23 HasDotTypeDotSizeDirective = false;
24 HasSingleParameterDotFile = false;
Chris Lattner40412e72009-07-27 16:45:59 +000025 HiddenDirective = NULL;
26 PrivateGlobalPrefix = "L"; // Prefix for private global symbols
27 WeakRefDirective = "\t.weak\t";
28 SetDirective = "\t.set\t";
29
30 // Set up DWARF directives
31 HasLEB128 = true; // Target asm supports leb128 directives (little-endian)
32 AbsoluteDebugSectionOffsets = true;
33 AbsoluteEHSectionOffsets = false;
34 SupportsDebugInformation = true;
35 DwarfSectionOffsetDirective = "\t.secrel32\t";
36 DwarfAbbrevSection = "\t.section\t.debug_abbrev,\"dr\"";
37 DwarfInfoSection = "\t.section\t.debug_info,\"dr\"";
38 DwarfLineSection = "\t.section\t.debug_line,\"dr\"";
39 DwarfFrameSection = "\t.section\t.debug_frame,\"dr\"";
40 DwarfPubNamesSection ="\t.section\t.debug_pubnames,\"dr\"";
41 DwarfPubTypesSection ="\t.section\t.debug_pubtypes,\"dr\"";
42 DwarfStrSection = "\t.section\t.debug_str,\"dr\"";
43 DwarfLocSection = "\t.section\t.debug_loc,\"dr\"";
44 DwarfARangesSection = "\t.section\t.debug_aranges,\"dr\"";
45 DwarfRangesSection = "\t.section\t.debug_ranges,\"dr\"";
46 DwarfMacroInfoSection = "\t.section\t.debug_macinfo,\"dr\"";
47}
48