1 //===-- ARMTargetAsmInfo.cpp - ARM asm properties ---------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains the declarations of the ARMTargetAsmInfo properties.
12 //===----------------------------------------------------------------------===//
14 #include "ARMTargetAsmInfo.h"
15 #include "ARMTargetMachine.h"
20 const char *const llvm::arm_asm_table[] = {
46 ARMDarwinTargetAsmInfo::ARMDarwinTargetAsmInfo(const ARMBaseTargetMachine &TM):
47 ARMTargetAsmInfo<DarwinTargetAsmInfo>(TM) {
48 Subtarget = &TM.getSubtarget<ARMSubtarget>();
50 ZeroDirective = "\t.space\t";
51 ZeroFillDirective = "\t.zerofill\t"; // Uses .zerofill
52 SetDirective = "\t.set\t";
53 ProtectedDirective = NULL;
54 HasDotTypeDotSizeDirective = false;
55 SupportsDebugInformation = true;
58 ARMELFTargetAsmInfo::ARMELFTargetAsmInfo(const ARMBaseTargetMachine &TM):
59 ARMTargetAsmInfo<TargetAsmInfo>(TM) {
60 Subtarget = &TM.getSubtarget<ARMSubtarget>();
64 AbsoluteDebugSectionOffsets = true;
65 PrivateGlobalPrefix = ".L";
66 WeakRefDirective = "\t.weak\t";
67 SetDirective = "\t.set\t";
68 DwarfRequiresFrameSection = false;
69 DwarfAbbrevSection = "\t.section\t.debug_abbrev,\"\",%progbits";
70 DwarfInfoSection = "\t.section\t.debug_info,\"\",%progbits";
71 DwarfLineSection = "\t.section\t.debug_line,\"\",%progbits";
72 DwarfFrameSection = "\t.section\t.debug_frame,\"\",%progbits";
73 DwarfPubNamesSection ="\t.section\t.debug_pubnames,\"\",%progbits";
74 DwarfPubTypesSection ="\t.section\t.debug_pubtypes,\"\",%progbits";
75 DwarfStrSection = "\t.section\t.debug_str,\"\",%progbits";
76 DwarfLocSection = "\t.section\t.debug_loc,\"\",%progbits";
77 DwarfARangesSection = "\t.section\t.debug_aranges,\"\",%progbits";
78 DwarfRangesSection = "\t.section\t.debug_ranges,\"\",%progbits";
79 DwarfMacroInfoSection = "\t.section\t.debug_macinfo,\"\",%progbits";
81 SupportsDebugInformation = true;
84 // Instantiate default implementation.
85 TEMPLATE_INSTANTIATION(class ARMTargetAsmInfo<TargetAsmInfo>);