mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 00:20:25 +00:00
Clear debug info at the end of function processing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62092 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1249,7 +1249,10 @@ public:
|
|||||||
DbgScope(DbgScope *P, DIDescriptor *D)
|
DbgScope(DbgScope *P, DIDescriptor *D)
|
||||||
: Parent(P), Desc(D), StartLabelID(0), EndLabelID(0), Scopes(), Variables()
|
: Parent(P), Desc(D), StartLabelID(0), EndLabelID(0), Scopes(), Variables()
|
||||||
{}
|
{}
|
||||||
~DbgScope();
|
~DbgScope() {
|
||||||
|
for (unsigned i = 0, N = Scopes.size(); i < N; ++i) delete Scopes[i];
|
||||||
|
for (unsigned j = 0, M = Variables.size(); j < M; ++j) delete Variables[j];
|
||||||
|
}
|
||||||
|
|
||||||
// Accessors.
|
// Accessors.
|
||||||
DbgScope *getParent() const { return Parent; }
|
DbgScope *getParent() const { return Parent; }
|
||||||
@@ -3821,6 +3824,14 @@ public:
|
|||||||
|
|
||||||
DebugFrames.push_back(FunctionDebugFrameInfo(SubprogramCount,
|
DebugFrames.push_back(FunctionDebugFrameInfo(SubprogramCount,
|
||||||
MMI->getFrameMoves()));
|
MMI->getFrameMoves()));
|
||||||
|
|
||||||
|
// Clear debug info
|
||||||
|
if (RootDbgScope) {
|
||||||
|
delete RootDbgScope;
|
||||||
|
DbgScopeMap.clear();
|
||||||
|
RootDbgScope = NULL;
|
||||||
|
}
|
||||||
|
Lines.clear();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user