summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-06-24 23:13:56 +0000
committerOwen Anderson <resistor@mac.com>2009-06-24 23:13:56 +0000
commit19c4b66830ad6a53c1d75e4f9a770da5c94babad (patch)
treee20e02c656556fe6d16d356069dd62d3fd17dac4 /llvm/lib
parent799bb6e178e2a808186bbcbd6f75fe660f6b92db (diff)
downloadbcm5719-llvm-19c4b66830ad6a53c1d75e4f9a770da5c94babad.tar.gz
bcm5719-llvm-19c4b66830ad6a53c1d75e4f9a770da5c94babad.zip
Down with _even more_ statics!
llvm-svn: 74137
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DIE.cpp1
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DIE.h6
2 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp b/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
index dc149cf8bc5..01c431c849a 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
+++ b/llvm/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/llvm/lib/CodeGen/AsmPrinter/DIE.h b/llvm/lib/CodeGen/AsmPrinter/DIE.h
index b14d91ca8b0..5b60327f903 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DIE.h
+++ b/llvm/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.
OpenPOWER on IntegriCloud