mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +00:00
[DebugInfo] Generate address ranges for compile units even if .debug_aranges is present: it is often the case that .debug_aranges section contains ranges only for a small subset of compile units. Test cases will be added in separate commits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168144 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -91,8 +91,10 @@ const DWARFDebugAranges *DWARFContext::getDebugAranges() {
|
||||
|
||||
Aranges.reset(new DWARFDebugAranges());
|
||||
Aranges->extract(arangesData);
|
||||
if (Aranges->isEmpty()) // No aranges in file, generate them from the DIEs.
|
||||
Aranges->generate(this);
|
||||
// Generate aranges from DIEs: even if .debug_aranges section is present,
|
||||
// it may describe only a small subset of compilation units, so we need to
|
||||
// manually build aranges for the rest of them.
|
||||
Aranges->generate(this);
|
||||
return Aranges.get();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user