git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183057
91177308-0d34-0410-b5e6-
96231b3b80d8
void DIEValue::anchor() { }
#ifndef NDEBUG
void DIEValue::anchor() { }
#ifndef NDEBUG
+void DIEValue::dump() const {
-void DIEInteger::print(raw_ostream &O) {
+void DIEInteger::print(raw_ostream &O) const {
O << "Int: " << (int64_t)Integer << " 0x";
O.write_hex(Integer);
}
O << "Int: " << (int64_t)Integer << " 0x";
O.write_hex(Integer);
}
-void DIELabel::print(raw_ostream &O) {
+void DIELabel::print(raw_ostream &O) const {
O << "Lbl: " << Label->getName();
}
#endif
O << "Lbl: " << Label->getName();
}
#endif
-void DIEDelta::print(raw_ostream &O) {
+void DIEDelta::print(raw_ostream &O) const {
O << "Del: " << LabelHi->getName() << "-" << LabelLo->getName();
}
#endif
O << "Del: " << LabelHi->getName() << "-" << LabelLo->getName();
}
#endif
-void DIEEntry::print(raw_ostream &O) {
+void DIEEntry::print(raw_ostream &O) const {
O << format("Die: 0x%lx", (long)(intptr_t)Entry);
}
#endif
O << format("Die: 0x%lx", (long)(intptr_t)Entry);
}
#endif
-void DIEBlock::print(raw_ostream &O) {
+void DIEBlock::print(raw_ostream &O) const {
O << "Blk: ";
DIE::print(O, 5);
}
O << "Blk: ";
DIE::print(O, 5);
}
virtual unsigned SizeOf(AsmPrinter *AP, unsigned Form) const = 0;
#ifndef NDEBUG
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;
static bool classof(const DIEValue *I) { return I->getType() == isInteger; }
#ifndef NDEBUG
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;
static bool classof(const DIEValue *L) { return L->getType() == isLabel; }
#ifndef NDEBUG
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;
static bool classof(const DIEValue *D) { return D->getType() == isDelta; }
#ifndef NDEBUG
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;
static bool classof(const DIEValue *E) { return E->getType() == isEntry; }
#ifndef NDEBUG
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;
static bool classof(const DIEValue *E) { return E->getType() == isBlock; }
#ifndef NDEBUG
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;