aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-04-15 20:41:31 +0000
committerDevang Patel <dpatel@apple.com>2009-04-15 20:41:31 +0000
commit7d2f972f596b671586365d17cdadb44e5eb03574 (patch)
treeff9a1833dbafa5b1bb86ad7bb3124c38cf1a4716 /lib/CodeGen/AsmPrinter/DwarfWriter.cpp
parentd3325d289736dec93c37f24bffd63cb91b643b87 (diff)
s/RootDbgScope/FunctionDbgScope/g
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69216 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfWriter.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfWriter.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
index d30e909d83..847a1c9ba6 100644
--- a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
@@ -1271,9 +1271,9 @@ class DwarfDebug : public Dwarf {
///
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;
@@ -2037,7 +2037,7 @@ private:
Parent->AddScope(Slot);
else
// First function is top level function.
- RootDbgScope = Slot;
+ FunctionDbgScope = Slot;
return Slot;
}
@@ -2052,8 +2052,8 @@ private:
// 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;
}
@@ -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.
if (!RootScope) return;
DIDescriptor Desc = RootScope->getDesc();
@@ -3120,7 +3120,7 @@ public:
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());
@@ -3319,8 +3319,8 @@ public:
}
// 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
@@ -3336,12 +3336,12 @@ public:
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();