diff options
author | Eric Christopher <echristo@gmail.com> | 2013-05-31 22:50:40 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-05-31 22:50:40 +0000 |
commit | 65ac02ad78211e43e44e79476a9213ae230ba07d (patch) | |
tree | 054a52131852d976e6f402dd15f1c8234bc865e0 /llvm/lib/CodeGen/AsmPrinter/DIE.cpp | |
parent | 9d22880c244756e3fbc0ede7e1d07e3427af1a29 (diff) | |
download | bcm5719-llvm-65ac02ad78211e43e44e79476a9213ae230ba07d.tar.gz bcm5719-llvm-65ac02ad78211e43e44e79476a9213ae230ba07d.zip |
Const-ify some printing and dumping code for DIEValues.
llvm-svn: 183057
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DIE.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DIE.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp b/llvm/lib/CodeGen/AsmPrinter/DIE.cpp index cc0cb56e8b3..38eceed5b23 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DIE.cpp @@ -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); } |