mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-12 01:18:53 +00:00
[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
This commit is contained in:
parent
a657a32cc8
commit
baf94f830b
@ -2136,7 +2136,7 @@ void DwarfDebug::emitDebugRanges() {
|
||||
return;
|
||||
}
|
||||
|
||||
if (getDwarfVersion() >= 5 && NoRangesPresent())
|
||||
if (NoRangesPresent())
|
||||
return;
|
||||
|
||||
// Start the dwarf ranges section.
|
||||
|
Loading…
Reference in New Issue
Block a user