mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Down with statics!
llvm-svn: 74134
This commit is contained in:
parent
715a8c1154
commit
7b32a5b971
@ -114,6 +114,9 @@ namespace llvm {
|
||||
mutable const MachineInstr *LastMI;
|
||||
mutable const Function *LastFn;
|
||||
mutable unsigned Counter;
|
||||
|
||||
// Private state for dump()
|
||||
static unsigned IndentLevel;
|
||||
|
||||
protected:
|
||||
explicit AsmPrinter(raw_ostream &o, TargetMachine &TM,
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user