mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-21 09:40:22 +00:00
Eliminate redundant map.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135278 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
20722b6cda
commit
1e479fb5c1
@ -1597,9 +1597,6 @@ DbgScope *DwarfDebug::getOrCreateDbgScope(DebugLoc DL) {
|
||||
getOrCreateDbgScope(DebugLoc::getFromDILocation(InlinedAt));
|
||||
WScope->setParent(Parent);
|
||||
Parent->addScope(WScope);
|
||||
|
||||
ConcreteScopes[InlinedAt] = WScope;
|
||||
|
||||
return WScope;
|
||||
}
|
||||
|
||||
@ -2049,7 +2046,6 @@ void DwarfDebug::endFunction(const MachineFunction *MF) {
|
||||
DeleteContainerSeconds(DbgScopeMap);
|
||||
UserVariables.clear();
|
||||
DbgValues.clear();
|
||||
ConcreteScopes.clear();
|
||||
DeleteContainerSeconds(AbstractScopes);
|
||||
AbstractScopesList.clear();
|
||||
AbstractVariables.clear();
|
||||
@ -2083,11 +2079,10 @@ DbgScope *DwarfDebug::findDbgScope(DebugLoc DL) {
|
||||
|
||||
DbgScope *Scope = NULL;
|
||||
LLVMContext &Ctx = Asm->MF->getFunction()->getContext();
|
||||
const MDNode *N = DL.getScope(Ctx);
|
||||
if (const MDNode *IA = DL.getInlinedAt(Ctx))
|
||||
Scope = ConcreteScopes.lookup(IA);
|
||||
if (Scope == 0)
|
||||
Scope = DbgScopeMap.lookup(DL.getScope(Ctx));
|
||||
|
||||
N = IA;
|
||||
Scope = DbgScopeMap.lookup(N);
|
||||
return Scope;
|
||||
}
|
||||
|
||||
|
@ -204,10 +204,6 @@ class DwarfDebug {
|
||||
///
|
||||
DenseMap<const MDNode *, DbgScope *> DbgScopeMap;
|
||||
|
||||
/// ConcreteScopes - Tracks the concrete scopees in the current function.
|
||||
/// These scopes are also included in DbgScopeMap.
|
||||
DenseMap<const MDNode *, DbgScope *> ConcreteScopes;
|
||||
|
||||
/// AbstractScopes - Tracks the abstract scopes a module. These scopes are
|
||||
/// not included DbgScopeMap. AbstractScopes owns its DbgScope*s.
|
||||
DenseMap<const MDNode *, DbgScope *> AbstractScopes;
|
||||
|
Loading…
x
Reference in New Issue
Block a user