diff options
| author | Owen Anderson <resistor@mac.com> | 2009-06-24 22:53:20 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2009-06-24 22:53:20 +0000 |
| commit | 9becc183e18341993c8665a074579819d654c9d6 (patch) | |
| tree | 1a083a5d3ccd81dab494927523088769c61c755a /llvm/lib/CodeGen | |
| parent | 4c563168d563fb54b48b3ae76df283b79a4f8d54 (diff) | |
| download | bcm5719-llvm-9becc183e18341993c8665a074579819d654c9d6.tar.gz bcm5719-llvm-9becc183e18341993c8665a074579819d654c9d6.zip | |
Down with statics!
llvm-svn: 74134
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 9d340e3aee5..7f9894d39ea 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -141,9 +141,12 @@ class VISIBILITY_HIDDEN DbgScope { SmallVector<DbgScope *, 4> Scopes; // Scopes defined in scope. SmallVector<DbgVariable *, 8> Variables;// Variables declared in scope. SmallVector<DbgConcreteScope *, 8> ConcreteInsts;// Concrete insts of funcs. + + // Private state for dump() + mutable unsigned IndentLevel; public: DbgScope(DbgScope *P, DIDescriptor D) - : Parent(P), Desc(D), StartLabelID(0), EndLabelID(0) {} + : Parent(P), Desc(D), StartLabelID(0), EndLabelID(0), IndentLevel(0) {} virtual ~DbgScope(); // Accessors. @@ -176,7 +179,6 @@ public: #ifndef NDEBUG void DbgScope::dump() const { - static unsigned IndentLevel = 0; std::string Indent(IndentLevel, ' '); cerr << Indent; Desc.dump(); |

