diff options
author | Owen Anderson <resistor@mac.com> | 2009-06-24 23:13:56 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-06-24 23:13:56 +0000 |
commit | 9f765d178aec597dce6cc16b0d08db159498c87e (patch) | |
tree | b3c61ad9ae8203f3db665bf7a1cb1001c270b3c1 | |
parent | acc70c66c618b2a834f0fde8bc53239224f31ac4 (diff) | |
download | external_llvm-9f765d178aec597dce6cc16b0d08db159498c87e.zip external_llvm-9f765d178aec597dce6cc16b0d08db159498c87e.tar.gz external_llvm-9f765d178aec597dce6cc16b0d08db159498c87e.tar.bz2 |
Down with _even more_ statics!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74137 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/AsmPrinter/DIE.cpp | 1 | ||||
-rw-r--r-- | lib/CodeGen/AsmPrinter/DIE.h | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/DIE.cpp b/lib/CodeGen/AsmPrinter/DIE.cpp index dc149cf..01c431c 100644 --- a/lib/CodeGen/AsmPrinter/DIE.cpp +++ b/lib/CodeGen/AsmPrinter/DIE.cpp @@ -126,7 +126,6 @@ void DIE::Profile(FoldingSetNodeID &ID) { #ifndef NDEBUG void DIE::print(std::ostream &O, unsigned IncIndent) { - static unsigned IndentCount = 0; IndentCount += IncIndent; const std::string Indent(IndentCount, ' '); bool isBlock = Abbrev.getTag() == 0; diff --git a/lib/CodeGen/AsmPrinter/DIE.h b/lib/CodeGen/AsmPrinter/DIE.h index b14d91c..5b60327 100644 --- a/lib/CodeGen/AsmPrinter/DIE.h +++ b/lib/CodeGen/AsmPrinter/DIE.h @@ -141,9 +141,13 @@ namespace llvm { /// Abstract compile unit. CompileUnit *AbstractCU; + + // Private data for print() + mutable unsigned IndentCount; public: explicit DIE(unsigned Tag) - : Abbrev(Tag, dwarf::DW_CHILDREN_no), Offset(0), Size(0) {} + : Abbrev(Tag, dwarf::DW_CHILDREN_no), Offset(0), + Size(0), IndentCount(0) {} virtual ~DIE(); // Accessors. |