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 | 813419ed5a1712ec5b75f157c103e875400f5cc6 (patch) | |
tree | 9957fedf19809991bc59db19019efc3d0c958cae /lib/CodeGen/AsmPrinter/DIE.cpp | |
parent | 769d24a60d798ffa3a47a01c9e7a0dcfaefbb882 (diff) | |
download | llvm-813419ed5a1712ec5b75f157c103e875400f5cc6.tar.gz llvm-813419ed5a1712ec5b75f157c103e875400f5cc6.tar.bz2 llvm-813419ed5a1712ec5b75f157c103e875400f5cc6.tar.xz |
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
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DIE.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DIE.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/CodeGen/AsmPrinter/DIE.cpp b/lib/CodeGen/AsmPrinter/DIE.cpp index cc0cb56e8b..38eceed5b2 100644 --- a/lib/CodeGen/AsmPrinter/DIE.cpp +++ b/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); } |