mirror of
https://github.com/RPCSX/llvm.git
synced 2025-03-05 19:38:13 +00:00
Refactor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100768 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
454c4ce479
commit
6122a4d1c0
@ -2268,6 +2268,16 @@ bool DwarfDebug::extractScopeInformation() {
|
|||||||
|
|
||||||
CurrentFnDbgScope->fixInstructionMarkers(MIIndexMap);
|
CurrentFnDbgScope->fixInstructionMarkers(MIIndexMap);
|
||||||
|
|
||||||
|
populateDbgScopeInverseMaps();
|
||||||
|
|
||||||
|
return !DbgScopeMap.empty();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// populateDbgScopeInverseMaps() - Populate DbgScopeBeginMap and
|
||||||
|
/// DbgScopeEndMap. This maps are used to indentify debug scope started
|
||||||
|
/// and ended by an instruction.
|
||||||
|
void DwarfDebug::populateDbgScopeInverseMaps() {
|
||||||
|
|
||||||
// Each scope has first instruction and last instruction to mark beginning
|
// Each scope has first instruction and last instruction to mark beginning
|
||||||
// and end of a scope respectively. Create an inverse map that list scopes
|
// and end of a scope respectively. Create an inverse map that list scopes
|
||||||
// starts (and ends) with an instruction. One instruction may start (or end)
|
// starts (and ends) with an instruction. One instruction may start (or end)
|
||||||
@ -2302,8 +2312,6 @@ bool DwarfDebug::extractScopeInformation() {
|
|||||||
else
|
else
|
||||||
DbgScopeEndMap[MI].push_back(S);
|
DbgScopeEndMap[MI].push_back(S);
|
||||||
}
|
}
|
||||||
|
|
||||||
return !DbgScopeMap.empty();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// beginFunction - Gather pre-function debug information. Assumes being
|
/// beginFunction - Gather pre-function debug information. Assumes being
|
||||||
|
@ -527,6 +527,11 @@ private:
|
|||||||
return Lines.size();
|
return Lines.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// populateDbgScopeInverseMaps() - Populate DbgScopeBeginMap and
|
||||||
|
/// DbgScopeEndMap. This maps are used to indentify debug scope started
|
||||||
|
/// and ended by an instruction.
|
||||||
|
void populateDbgScopeInverseMaps();
|
||||||
|
|
||||||
/// extractScopeInformation - Scan machine instructions in this function
|
/// extractScopeInformation - Scan machine instructions in this function
|
||||||
/// and collect DbgScopes. Return true, if atleast one scope was found.
|
/// and collect DbgScopes. Return true, if atleast one scope was found.
|
||||||
bool extractScopeInformation();
|
bool extractScopeInformation();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user