diff options
author | Sam Clegg <sbc@chromium.org> | 2017-06-21 22:19:17 +0000 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2017-06-21 22:19:17 +0000 |
commit | 705f798bff394f8f4372d917dfb93fac6017fe34 (patch) | |
tree | 50f84972e7b1976fff00fce0cd2182c6f9fa0c4e /llvm/lib/CodeGen/AsmPrinter/DIE.cpp | |
parent | e3eb42cef64ffee02fe00d633eeb0c44e24217e9 (diff) | |
download | bcm5719-llvm-705f798bff394f8f4372d917dfb93fac6017fe34.tar.gz bcm5719-llvm-705f798bff394f8f4372d917dfb93fac6017fe34.zip |
Mark dump() methods as const. NFC
Add const qualifier to any dump() method where adding one
was trivial.
Differential Revision: https://reviews.llvm.org/D34481
llvm-svn: 305963
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DIE.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DIE.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp b/llvm/lib/CodeGen/AsmPrinter/DIE.cpp index 30bfd7c94e6..886e6e264b3 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DIE.cpp @@ -105,7 +105,7 @@ void DIEAbbrev::Emit(const AsmPrinter *AP) const { } LLVM_DUMP_METHOD -void DIEAbbrev::print(raw_ostream &O) { +void DIEAbbrev::print(raw_ostream &O) const { O << "Abbreviation @" << format("0x%lx", (long)(intptr_t)this) << " " @@ -128,7 +128,7 @@ void DIEAbbrev::print(raw_ostream &O) { } #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) -LLVM_DUMP_METHOD void DIEAbbrev::dump() { +LLVM_DUMP_METHOD void DIEAbbrev::dump() const { print(dbgs()); } #endif @@ -268,7 +268,7 @@ void DIE::print(raw_ostream &O, unsigned IndentCount) const { } #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) -LLVM_DUMP_METHOD void DIE::dump() { +LLVM_DUMP_METHOD void DIE::dump() const { print(dbgs()); } #endif |