summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-02-25 22:46:44 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-02-25 22:46:44 +0000
commit20474106a1913932c482af2c9e76bfb054826dda (patch)
treed1648568fdb457451fba4006d61e9f1c4b7048c6 /llvm/lib/CodeGen/AsmPrinter
parentc1b2875e6938163d136574517efbd512c588048d (diff)
downloadbcm5719-llvm-20474106a1913932c482af2c9e76bfb054826dda.tar.gz
bcm5719-llvm-20474106a1913932c482af2c9e76bfb054826dda.zip
DwarfDebug: Avoid emitting an empty debug_aranges section when aranges are disabled
llvm-svn: 202201
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index b18e8d49ac0..ff5a8213deb 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -1941,7 +1941,8 @@ void DwarfDebug::emitSectionLabels() {
if (useSplitDwarf())
DwarfAbbrevDWOSectionSym = emitSectionSym(
Asm, TLOF.getDwarfAbbrevDWOSection(), "section_abbrev_dwo");
- emitSectionSym(Asm, TLOF.getDwarfARangesSection());
+ if (GenerateARangeSection)
+ emitSectionSym(Asm, TLOF.getDwarfARangesSection());
DwarfLineSectionSym =
emitSectionSym(Asm, TLOF.getDwarfLineSection(), "section_line");
OpenPOWER on IntegriCloud