diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-02 07:24:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-02 07:24:22 +0000 |
commit | 18a4c16726db2b8874c7b84d04650dda80746074 (patch) | |
tree | 8553ba80f8e70ee3c23c815674e9625a280dc8ea /include/llvm/Target | |
parent | 35039ac24163e99cfab161620a9fb41f944a63d5 (diff) |
move dwarf debug info section selection stuff from TAI to
TLOF, unifying all the dwarf targets at the same time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77889 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r-- | include/llvm/Target/TargetAsmInfo.h | 91 | ||||
-rw-r--r-- | include/llvm/Target/TargetLoweringObjectFile.h | 32 |
2 files changed, 31 insertions, 92 deletions
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index 75b3bdf025..75a9053861 100644 --- a/include/llvm/Target/TargetAsmInfo.h +++ b/include/llvm/Target/TargetAsmInfo.h @@ -315,58 +315,6 @@ namespace llvm { /// DwarfSectionOffsetDirective - Special section offset directive. const char* DwarfSectionOffsetDirective; // Defaults to NULL - /// DwarfAbbrevSection - Section directive for Dwarf abbrev. - /// - const char *DwarfAbbrevSection; // Defaults to ".debug_abbrev". - - /// DwarfInfoSection - Section directive for Dwarf info. - /// - const char *DwarfInfoSection; // Defaults to ".debug_info". - - /// DwarfLineSection - Section directive for Dwarf info. - /// - const char *DwarfLineSection; // Defaults to ".debug_line". - - /// DwarfFrameSection - Section directive for Dwarf info. - /// - const char *DwarfFrameSection; // Defaults to ".debug_frame". - - /// DwarfPubNamesSection - Section directive for Dwarf info. - /// - const char *DwarfPubNamesSection; // Defaults to ".debug_pubnames". - - /// DwarfPubTypesSection - Section directive for Dwarf info. - /// - const char *DwarfPubTypesSection; // Defaults to ".debug_pubtypes". - - /// DwarfDebugInlineSection - Section directive for inline info. - /// - const char *DwarfDebugInlineSection; // Defaults to ".debug_inlined" - - /// DwarfStrSection - Section directive for Dwarf info. - /// - const char *DwarfStrSection; // Defaults to ".debug_str". - - /// DwarfLocSection - Section directive for Dwarf info. - /// - const char *DwarfLocSection; // Defaults to ".debug_loc". - - /// DwarfARangesSection - Section directive for Dwarf info. - /// - const char *DwarfARangesSection; // Defaults to ".debug_aranges". - - /// DwarfRangesSection - Section directive for Dwarf info. - /// - const char *DwarfRangesSection; // Defaults to ".debug_ranges". - - /// DwarfMacroInfoSection - Section directive for DWARF macro info. - /// - const char *DwarfMacroInfoSection; // Defaults to ".debug_macinfo". - - /// DwarfEHFrameSection - Section directive for Exception frames. - /// - const char *DwarfEHFrameSection; // Defaults to ".eh_frame". - //===--- CBE Asm Translation Table -----------------------------------===// const char *const *AsmTransCBE; // Defaults to empty @@ -584,45 +532,6 @@ namespace llvm { const char *getDwarfSectionOffsetDirective() const { return DwarfSectionOffsetDirective; } - const char *getDwarfAbbrevSection() const { - return DwarfAbbrevSection; - } - const char *getDwarfInfoSection() const { - return DwarfInfoSection; - } - const char *getDwarfLineSection() const { - return DwarfLineSection; - } - const char *getDwarfFrameSection() const { - return DwarfFrameSection; - } - const char *getDwarfPubNamesSection() const { - return DwarfPubNamesSection; - } - const char *getDwarfPubTypesSection() const { - return DwarfPubTypesSection; - } - const char *getDwarfDebugInlineSection() const { - return DwarfDebugInlineSection; - } - const char *getDwarfStrSection() const { - return DwarfStrSection; - } - const char *getDwarfLocSection() const { - return DwarfLocSection; - } - const char *getDwarfARangesSection() const { - return DwarfARangesSection; - } - const char *getDwarfRangesSection() const { - return DwarfRangesSection; - } - const char *getDwarfMacroInfoSection() const { - return DwarfMacroInfoSection; - } - const char *getDwarfEHFrameSection() const { - return DwarfEHFrameSection; - } const char *const *getAsmCBE() const { return AsmTransCBE; } diff --git a/include/llvm/Target/TargetLoweringObjectFile.h b/include/llvm/Target/TargetLoweringObjectFile.h index b4d9b59035..c81cdc4638 100644 --- a/include/llvm/Target/TargetLoweringObjectFile.h +++ b/include/llvm/Target/TargetLoweringObjectFile.h @@ -66,6 +66,20 @@ protected: /// the section the EH Frame is emitted to. const MCSection *EHFrameSection; + // Dwarf sections for debug info. If a target supports debug info, these must + // be set. + const MCSection *DwarfAbbrevSection; + const MCSection *DwarfInfoSection; + const MCSection *DwarfLineSection; + const MCSection *DwarfFrameSection; + const MCSection *DwarfPubNamesSection; + const MCSection *DwarfPubTypesSection; + const MCSection *DwarfDebugInlineSection; + const MCSection *DwarfStrSection; + const MCSection *DwarfLocSection; + const MCSection *DwarfARangesSection; + const MCSection *DwarfRangesSection; + const MCSection *DwarfMacroInfoSection; public: // FIXME: NONPUB. @@ -90,7 +104,23 @@ public: const MCSection *getStaticDtorSection() const { return StaticDtorSection; } const MCSection *getLSDASection() const { return LSDASection; } const MCSection *getEHFrameSection() const { return EHFrameSection; } - + const MCSection *getDwarfAbbrevSection() const { return DwarfAbbrevSection; } + const MCSection *getDwarfInfoSection() const { return DwarfInfoSection; } + const MCSection *getDwarfLineSection() const { return DwarfLineSection; } + const MCSection *getDwarfFrameSection() const { return DwarfFrameSection; } + const MCSection *getDwarfPubNamesSection() const{return DwarfPubNamesSection;} + const MCSection *getDwarfPubTypesSection() const{return DwarfPubTypesSection;} + const MCSection *getDwarfDebugInlineSection() const { + return DwarfDebugInlineSection; + } + const MCSection *getDwarfStrSection() const { return DwarfStrSection; } + const MCSection *getDwarfLocSection() const { return DwarfLocSection; } + const MCSection *getDwarfARangesSection() const { return DwarfARangesSection;} + const MCSection *getDwarfRangesSection() const { return DwarfRangesSection; } + const MCSection *getDwarfMacroInfoSection() const { + return DwarfMacroInfoSection; + } + /// shouldEmitUsedDirectiveFor - This hook allows targets to selectively /// decide not to emit the UsedDirective for some symbols in llvm.used. /// FIXME: REMOVE this (rdar://7071300) |