aboutsummaryrefslogtreecommitdiff
path: root/include/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Target/TargetAsmInfo.h91
-rw-r--r--include/llvm/Target/TargetLoweringObjectFile.h32
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)