[llvm-commits] [llvm] r74137 - in /llvm/trunk/lib/CodeGen/AsmPrinter: DIE.cpp DIE.h
Owen Anderson
resistor at mac.com
Wed Jun 24 16:14:15 PDT 2009
Author: resistor
Date: Wed Jun 24 18:13:56 2009
New Revision: 74137
URL: http://llvm.org/viewvc/llvm-project?rev=74137&view=rev
Log:
Down with _even more_ statics!
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DIE.cpp
llvm/trunk/lib/CodeGen/AsmPrinter/DIE.h
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DIE.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DIE.cpp?rev=74137&r1=74136&r2=74137&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DIE.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DIE.cpp Wed Jun 24 18:13:56 2009
@@ -126,7 +126,6 @@
#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;
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DIE.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DIE.h?rev=74137&r1=74136&r2=74137&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DIE.h (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DIE.h Wed Jun 24 18:13:56 2009
@@ -141,9 +141,13 @@
/// 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.
More information about the llvm-commits
mailing list