mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 01:24:30 +00:00
DebugInfo: Sink DwarfDebug::ScopeVariables down into DwarfFile
(part of refactoring to allow subprogram emission in both the skeleton and main units to enable -gmlt-like data to be included in the skeleton for live inlined backtracing purposes) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220578 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1284,7 +1284,7 @@ void DwarfDebug::endFunction(const MachineFunction *MF) {
|
||||
// subroutines inside it.
|
||||
if (TheCU.getCUNode().getEmissionKind() == DIBuilder::LineTablesOnly &&
|
||||
LScopes.getAbstractScopesList().empty() && !IsDarwin) {
|
||||
assert(ScopeVariables.empty());
|
||||
assert(InfoHolder.getScopeVariables().empty());
|
||||
assert(DbgValues.empty());
|
||||
// FIXME: This wouldn't be true in LTO with a -g (with inlining) CU followed
|
||||
// by a -gmlt CU. Add a test and remove this assertion.
|
||||
@ -1323,7 +1323,7 @@ void DwarfDebug::endFunction(const MachineFunction *MF) {
|
||||
// Ownership of DbgVariables is a bit subtle - ScopeVariables owns all the
|
||||
// DbgVariables except those that are also in AbstractVariables (since they
|
||||
// can be used cross-function)
|
||||
ScopeVariables.clear();
|
||||
InfoHolder.getScopeVariables().clear();
|
||||
DbgValues.clear();
|
||||
LabelsBeforeInsn.clear();
|
||||
LabelsAfterInsn.clear();
|
||||
|
Reference in New Issue
Block a user