summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2013-02-02 00:02:03 +0000
committerManman Ren <mren@apple.com>2013-02-02 00:02:03 +0000
commit7650d9b893b83b6261d1bbc892464aa9d61cc23f (patch)
treebb8b458949843a736088888b92fe9de4eb01bda3 /include
parent945e828003b746f6bbe86390940cf1433d18b0a1 (diff)
downloadllvm-7650d9b893b83b6261d1bbc892464aa9d61cc23f.tar.gz
llvm-7650d9b893b83b6261d1bbc892464aa9d61cc23f.tar.bz2
llvm-7650d9b893b83b6261d1bbc892464aa9d61cc23f.tar.xz
Correct indentation for dumping LexicalScope.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174237 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/LexicalScopes.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/llvm/CodeGen/LexicalScopes.h b/include/llvm/CodeGen/LexicalScopes.h
index 3cb6b4de2c..ff65db4ee4 100644
--- a/include/llvm/CodeGen/LexicalScopes.h
+++ b/include/llvm/CodeGen/LexicalScopes.h
@@ -159,9 +159,6 @@ public:
LexicalScope(LexicalScope *P, const MDNode *D, const MDNode *I, bool A)
: Parent(P), Desc(D), InlinedAtLocation(I), AbstractScope(A),
LastInsn(0), FirstInsn(0), DFSIn(0), DFSOut(0) {
-#ifndef NDEBUG
- IndentLevel = 0;
-#endif
if (Parent)
Parent->addChild(this);
}
@@ -228,7 +225,7 @@ public:
void setDFSIn(unsigned I) { DFSIn = I; }
/// dump - print lexical scope.
- void dump() const;
+ void dump(unsigned Indent = 0) const;
private:
LexicalScope *Parent; // Parent to this scope.
@@ -244,9 +241,6 @@ private:
const MachineInstr *FirstInsn; // First instruction of this scope.
unsigned DFSIn, DFSOut; // In & Out Depth use to determine
// scope nesting.
-#ifndef NDEBUG
- mutable unsigned IndentLevel; // Private state for dump()
-#endif
};
} // end llvm namespace