///
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.
DenseMap<GlobalVariable *, DbgScope *> DbgScopeMap;
Parent->AddScope(Slot);
else
// First function is top level function.
- RootDbgScope = Slot;
+ FunctionDbgScope = Slot;
return Slot;
}
// FIXME - Add inlined function scopes to the root so we can delete them
// later.
- assert (RootDbgScope && "Function scope info missing!");
- RootDbgScope->AddScope(Scope);
+ assert (FunctionDbgScope && "Function scope info missing!");
+ FunctionDbgScope->AddScope(Scope);
return Scope;
}
}
}
- /// 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.
if (!RootScope) return;
DIDescriptor Desc = RootScope->getDesc();
AbbreviationsSet(InitAbbreviationsSetSize), Abbreviations(),
ValuesSet(InitValuesSetSize), Values(), StringPool(), SectionMap(),
SectionSourceLines(), didInitial(false), shouldEmit(false),
- RootDbgScope(0), DebugTimer(0) {
+ FunctionDbgScope(0), DebugTimer(0) {
if (TimePassesIsEnabled)
DebugTimer = new Timer("Dwarf Debug Writer",
getDwarfTimerGroup());
}
// Construct scopes for subprogram.
- if (RootDbgScope)
- ConstructRootDbgScope(RootDbgScope);
+ if (FunctionDbgScope)
+ ConstructFunctionDbgScope(FunctionDbgScope);
else
// FIXME: This is wrong. We are essentially getting past a problem with
// debug information not being able to handle unreachable blocks that have
MMI->getFrameMoves()));
// Clear debug info
- if (RootDbgScope) {
- delete RootDbgScope;
+ if (FunctionDbgScope) {
+ delete FunctionDbgScope;
DbgScopeMap.clear();
DbgInlinedScopeMap.clear();
InlinedVariableScopes.clear();
- RootDbgScope = NULL;
+ FunctionDbgScope = NULL;
}
Lines.clear();