diff options
author | Wolfgang Pieb <Wolfgang.Pieb@sony.com> | 2018-07-31 20:56:32 +0000 |
---|---|---|
committer | Wolfgang Pieb <Wolfgang.Pieb@sony.com> | 2018-07-31 20:56:32 +0000 |
commit | baf94f830ba4739647d6690c9535619a0175247b (patch) | |
tree | 6fb2b0b246abf8f8b937ec40dcbef173e1784b21 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | a657a32cc8fe05cd6fdb1578834a719c169493ae (diff) | |
download | bcm5719-llvm-baf94f830ba4739647d6690c9535619a0175247b.tar.gz bcm5719-llvm-baf94f830ba4739647d6690c9535619a0175247b.zip |
[DWARF] Do not create a .debug_ranges section when no ranges are needed.
Reviewers: aprantl
Differential Revision: https://reviews.llvm.org/D50089
llvm-svn: 338437
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 8761fae9dd2..e5a457e424b 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2136,7 +2136,7 @@ void DwarfDebug::emitDebugRanges() { return; } - if (getDwarfVersion() >= 5 && NoRangesPresent()) + if (NoRangesPresent()) return; // Start the dwarf ranges section. |