mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-22 10:24:26 +00:00
Down with statics!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74134 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -115,6 +115,9 @@ namespace llvm {
|
|||||||
mutable const Function *LastFn;
|
mutable const Function *LastFn;
|
||||||
mutable unsigned Counter;
|
mutable unsigned Counter;
|
||||||
|
|
||||||
|
// Private state for dump()
|
||||||
|
static unsigned IndentLevel;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
explicit AsmPrinter(raw_ostream &o, TargetMachine &TM,
|
explicit AsmPrinter(raw_ostream &o, TargetMachine &TM,
|
||||||
const TargetAsmInfo *T, CodeGenOpt::Level OL, bool V);
|
const TargetAsmInfo *T, CodeGenOpt::Level OL, bool V);
|
||||||
|
@ -141,9 +141,12 @@ class VISIBILITY_HIDDEN DbgScope {
|
|||||||
SmallVector<DbgScope *, 4> Scopes; // Scopes defined in scope.
|
SmallVector<DbgScope *, 4> Scopes; // Scopes defined in scope.
|
||||||
SmallVector<DbgVariable *, 8> Variables;// Variables declared in scope.
|
SmallVector<DbgVariable *, 8> Variables;// Variables declared in scope.
|
||||||
SmallVector<DbgConcreteScope *, 8> ConcreteInsts;// Concrete insts of funcs.
|
SmallVector<DbgConcreteScope *, 8> ConcreteInsts;// Concrete insts of funcs.
|
||||||
|
|
||||||
|
// Private state for dump()
|
||||||
|
mutable unsigned IndentLevel;
|
||||||
public:
|
public:
|
||||||
DbgScope(DbgScope *P, DIDescriptor D)
|
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();
|
virtual ~DbgScope();
|
||||||
|
|
||||||
// Accessors.
|
// Accessors.
|
||||||
@ -176,7 +179,6 @@ public:
|
|||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
void DbgScope::dump() const {
|
void DbgScope::dump() const {
|
||||||
static unsigned IndentLevel = 0;
|
|
||||||
std::string Indent(IndentLevel, ' ');
|
std::string Indent(IndentLevel, ' ');
|
||||||
|
|
||||||
cerr << Indent; Desc.dump();
|
cerr << Indent; Desc.dump();
|
||||||
|
Reference in New Issue
Block a user