[llvm] r338437 - [DWARF] Do not create a .debug_ranges section when no ranges are needed.
Wolfgang Pieb via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 31 13:56:32 PDT 2018
Author: wolfgangp
Date: Tue Jul 31 13:56:32 2018
New Revision: 338437
URL: http://llvm.org/viewvc/llvm-project?rev=338437&view=rev
Log:
[DWARF] Do not create a .debug_ranges section when no ranges are needed.
Reviewers: aprantl
Differential Revision: https://reviews.llvm.org/D50089
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=338437&r1=338436&r2=338437&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Tue Jul 31 13:56:32 2018
@@ -2136,7 +2136,7 @@ void DwarfDebug::emitDebugRanges() {
return;
}
- if (getDwarfVersion() >= 5 && NoRangesPresent())
+ if (NoRangesPresent())
return;
// Start the dwarf ranges section.
More information about the llvm-commits
mailing list