mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
s/RootDbgScope/FunctionDbgScope/g
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69216 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1271,9 +1271,9 @@ class DwarfDebug : public Dwarf {
|
|||||||
///
|
///
|
||||||
bool shouldEmit;
|
bool shouldEmit;
|
||||||
|
|
||||||
// RootDbgScope - Top level scope for the current function.
|
// FunctionDbgScope - Top level scope for the current function.
|
||||||
//
|
//
|
||||||
DbgScope *RootDbgScope;
|
DbgScope *FunctionDbgScope;
|
||||||
|
|
||||||
/// DbgScopeMap - Tracks the scopes in the current function.
|
/// DbgScopeMap - Tracks the scopes in the current function.
|
||||||
DenseMap<GlobalVariable *, DbgScope *> DbgScopeMap;
|
DenseMap<GlobalVariable *, DbgScope *> DbgScopeMap;
|
||||||
@@ -2037,7 +2037,7 @@ private:
|
|||||||
Parent->AddScope(Slot);
|
Parent->AddScope(Slot);
|
||||||
else
|
else
|
||||||
// First function is top level function.
|
// First function is top level function.
|
||||||
RootDbgScope = Slot;
|
FunctionDbgScope = Slot;
|
||||||
|
|
||||||
return Slot;
|
return Slot;
|
||||||
}
|
}
|
||||||
@@ -2052,8 +2052,8 @@ private:
|
|||||||
|
|
||||||
// FIXME - Add inlined function scopes to the root so we can delete them
|
// FIXME - Add inlined function scopes to the root so we can delete them
|
||||||
// later.
|
// later.
|
||||||
assert (RootDbgScope && "Function scope info missing!");
|
assert (FunctionDbgScope && "Function scope info missing!");
|
||||||
RootDbgScope->AddScope(Scope);
|
FunctionDbgScope->AddScope(Scope);
|
||||||
return Scope;
|
return Scope;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2126,9 +2126,9 @@ private:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// ConstructRootDbgScope - Construct the scope for the subprogram.
|
/// ConstructFunctionDbgScope - Construct the scope for the subprogram.
|
||||||
///
|
///
|
||||||
void ConstructRootDbgScope(DbgScope *RootScope) {
|
void ConstructFunctionDbgScope(DbgScope *RootScope) {
|
||||||
// Exit if there is no root scope.
|
// Exit if there is no root scope.
|
||||||
if (!RootScope) return;
|
if (!RootScope) return;
|
||||||
DIDescriptor Desc = RootScope->getDesc();
|
DIDescriptor Desc = RootScope->getDesc();
|
||||||
@@ -3120,7 +3120,7 @@ public:
|
|||||||
AbbreviationsSet(InitAbbreviationsSetSize), Abbreviations(),
|
AbbreviationsSet(InitAbbreviationsSetSize), Abbreviations(),
|
||||||
ValuesSet(InitValuesSetSize), Values(), StringPool(), SectionMap(),
|
ValuesSet(InitValuesSetSize), Values(), StringPool(), SectionMap(),
|
||||||
SectionSourceLines(), didInitial(false), shouldEmit(false),
|
SectionSourceLines(), didInitial(false), shouldEmit(false),
|
||||||
RootDbgScope(0), DebugTimer(0) {
|
FunctionDbgScope(0), DebugTimer(0) {
|
||||||
if (TimePassesIsEnabled)
|
if (TimePassesIsEnabled)
|
||||||
DebugTimer = new Timer("Dwarf Debug Writer",
|
DebugTimer = new Timer("Dwarf Debug Writer",
|
||||||
getDwarfTimerGroup());
|
getDwarfTimerGroup());
|
||||||
@@ -3319,8 +3319,8 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Construct scopes for subprogram.
|
// Construct scopes for subprogram.
|
||||||
if (RootDbgScope)
|
if (FunctionDbgScope)
|
||||||
ConstructRootDbgScope(RootDbgScope);
|
ConstructFunctionDbgScope(FunctionDbgScope);
|
||||||
else
|
else
|
||||||
// FIXME: This is wrong. We are essentially getting past a problem with
|
// FIXME: This is wrong. We are essentially getting past a problem with
|
||||||
// debug information not being able to handle unreachable blocks that have
|
// debug information not being able to handle unreachable blocks that have
|
||||||
@@ -3336,12 +3336,12 @@ public:
|
|||||||
MMI->getFrameMoves()));
|
MMI->getFrameMoves()));
|
||||||
|
|
||||||
// Clear debug info
|
// Clear debug info
|
||||||
if (RootDbgScope) {
|
if (FunctionDbgScope) {
|
||||||
delete RootDbgScope;
|
delete FunctionDbgScope;
|
||||||
DbgScopeMap.clear();
|
DbgScopeMap.clear();
|
||||||
DbgInlinedScopeMap.clear();
|
DbgInlinedScopeMap.clear();
|
||||||
InlinedVariableScopes.clear();
|
InlinedVariableScopes.clear();
|
||||||
RootDbgScope = NULL;
|
FunctionDbgScope = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
Lines.clear();
|
Lines.clear();
|
||||||
|
Reference in New Issue
Block a user