mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-05 14:34:55 +00:00
Const-ify some printing and dumping code for DIEValues.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183057 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
769d24a60d
commit
813419ed5a
@ -178,7 +178,7 @@ void DIE::dump() {
|
||||
void DIEValue::anchor() { }
|
||||
|
||||
#ifndef NDEBUG
|
||||
void DIEValue::dump() {
|
||||
void DIEValue::dump() const {
|
||||
print(dbgs());
|
||||
}
|
||||
#endif
|
||||
@ -244,7 +244,7 @@ unsigned DIEInteger::SizeOf(AsmPrinter *AP, unsigned Form) const {
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
void DIEInteger::print(raw_ostream &O) {
|
||||
void DIEInteger::print(raw_ostream &O) const {
|
||||
O << "Int: " << (int64_t)Integer << " 0x";
|
||||
O.write_hex(Integer);
|
||||
}
|
||||
@ -270,7 +270,7 @@ unsigned DIELabel::SizeOf(AsmPrinter *AP, unsigned Form) const {
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
void DIELabel::print(raw_ostream &O) {
|
||||
void DIELabel::print(raw_ostream &O) const {
|
||||
O << "Lbl: " << Label->getName();
|
||||
}
|
||||
#endif
|
||||
@ -294,7 +294,7 @@ unsigned DIEDelta::SizeOf(AsmPrinter *AP, unsigned Form) const {
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
void DIEDelta::print(raw_ostream &O) {
|
||||
void DIEDelta::print(raw_ostream &O) const {
|
||||
O << "Del: " << LabelHi->getName() << "-" << LabelLo->getName();
|
||||
}
|
||||
#endif
|
||||
@ -310,7 +310,7 @@ void DIEEntry::EmitValue(AsmPrinter *AP, unsigned Form) const {
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
void DIEEntry::print(raw_ostream &O) {
|
||||
void DIEEntry::print(raw_ostream &O) const {
|
||||
O << format("Die: 0x%lx", (long)(intptr_t)Entry);
|
||||
}
|
||||
#endif
|
||||
@ -360,7 +360,7 @@ unsigned DIEBlock::SizeOf(AsmPrinter *AP, unsigned Form) const {
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
void DIEBlock::print(raw_ostream &O) {
|
||||
void DIEBlock::print(raw_ostream &O) const {
|
||||
O << "Blk: ";
|
||||
DIE::print(O, 5);
|
||||
}
|
||||
|
@ -217,8 +217,8 @@ namespace llvm {
|
||||
virtual unsigned SizeOf(AsmPrinter *AP, unsigned Form) const = 0;
|
||||
|
||||
#ifndef NDEBUG
|
||||
virtual void print(raw_ostream &O) = 0;
|
||||
void dump();
|
||||
virtual void print(raw_ostream &O) const = 0;
|
||||
void dump() const;
|
||||
#endif
|
||||
};
|
||||
|
||||
@ -260,7 +260,7 @@ namespace llvm {
|
||||
static bool classof(const DIEValue *I) { return I->getType() == isInteger; }
|
||||
|
||||
#ifndef NDEBUG
|
||||
virtual void print(raw_ostream &O);
|
||||
virtual void print(raw_ostream &O) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
@ -288,7 +288,7 @@ namespace llvm {
|
||||
static bool classof(const DIEValue *L) { return L->getType() == isLabel; }
|
||||
|
||||
#ifndef NDEBUG
|
||||
virtual void print(raw_ostream &O);
|
||||
virtual void print(raw_ostream &O) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
@ -314,7 +314,7 @@ namespace llvm {
|
||||
static bool classof(const DIEValue *D) { return D->getType() == isDelta; }
|
||||
|
||||
#ifndef NDEBUG
|
||||
virtual void print(raw_ostream &O);
|
||||
virtual void print(raw_ostream &O) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
@ -345,7 +345,7 @@ namespace llvm {
|
||||
static bool classof(const DIEValue *E) { return E->getType() == isEntry; }
|
||||
|
||||
#ifndef NDEBUG
|
||||
virtual void print(raw_ostream &O);
|
||||
virtual void print(raw_ostream &O) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
@ -384,7 +384,7 @@ namespace llvm {
|
||||
static bool classof(const DIEValue *E) { return E->getType() == isBlock; }
|
||||
|
||||
#ifndef NDEBUG
|
||||
virtual void print(raw_ostream &O);
|
||||
virtual void print(raw_ostream &O) const;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user