mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
Fix a bug in DebugInfo lib, extend a comment for one of the methods
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159707 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -239,8 +239,8 @@ DWARFCompileUnit::buildAddressRangeTable(DWARFDebugAranges *debug_aranges,
|
||||
|
||||
const DWARFDebugInfoEntryMinimal*
|
||||
DWARFCompileUnit::getFunctionDIEForAddress(int64_t address) {
|
||||
size_t n = extractDIEsIfNeeded(false);
|
||||
for (size_t i = 0; i != n; i++) {
|
||||
extractDIEsIfNeeded(false);
|
||||
for (size_t i = 0, n = DieArray.size(); i != n; i++) {
|
||||
if (DieArray[i].addressRangeContainsAddress(this, address))
|
||||
return &DieArray[i];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user