mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
Down with _even more_ statics!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74137 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -126,7 +126,6 @@ void DIE::Profile(FoldingSetNodeID &ID) {
|
|||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
void DIE::print(std::ostream &O, unsigned IncIndent) {
|
void DIE::print(std::ostream &O, unsigned IncIndent) {
|
||||||
static unsigned IndentCount = 0;
|
|
||||||
IndentCount += IncIndent;
|
IndentCount += IncIndent;
|
||||||
const std::string Indent(IndentCount, ' ');
|
const std::string Indent(IndentCount, ' ');
|
||||||
bool isBlock = Abbrev.getTag() == 0;
|
bool isBlock = Abbrev.getTag() == 0;
|
||||||
|
@@ -141,9 +141,13 @@ namespace llvm {
|
|||||||
|
|
||||||
/// Abstract compile unit.
|
/// Abstract compile unit.
|
||||||
CompileUnit *AbstractCU;
|
CompileUnit *AbstractCU;
|
||||||
|
|
||||||
|
// Private data for print()
|
||||||
|
mutable unsigned IndentCount;
|
||||||
public:
|
public:
|
||||||
explicit DIE(unsigned Tag)
|
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();
|
virtual ~DIE();
|
||||||
|
|
||||||
// Accessors.
|
// Accessors.
|
||||||
|
Reference in New Issue
Block a user