From eb2a25467e9ff2ef1976924957c0dfa31bda9e03 Mon Sep 17 00:00:00 2001 From: Yaron Keren Date: Fri, 29 Jan 2016 20:50:44 +0000 Subject: Annotate dump() methods with LLVM_DUMP_METHOD, addressing Richard Smith r259192 post commit comment. clang part in r259232, this is the LLVM part of the patch. llvm-svn: 259240 --- llvm/lib/CodeGen/LiveInterval.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'llvm/lib/CodeGen/LiveInterval.cpp') diff --git a/llvm/lib/CodeGen/LiveInterval.cpp b/llvm/lib/CodeGen/LiveInterval.cpp index 5574a813c6a..90d01f69238 100644 --- a/llvm/lib/CodeGen/LiveInterval.cpp +++ b/llvm/lib/CodeGen/LiveInterval.cpp @@ -1025,7 +1025,7 @@ raw_ostream& llvm::operator<<(raw_ostream& os, const LiveRange::Segment &S) { } #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) -void LiveRange::Segment::dump() const { +LLVM_DUMP_METHOD void LiveRange::Segment::dump() const { dbgs() << *this << "\n"; } #endif @@ -1070,11 +1070,11 @@ void LiveInterval::print(raw_ostream &OS) const { } #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) -void LiveRange::dump() const { +LLVM_DUMP_METHOD void LiveRange::dump() const { dbgs() << *this << "\n"; } -void LiveInterval::dump() const { +LLVM_DUMP_METHOD void LiveInterval::dump() const { dbgs() << *this << "\n"; } #endif @@ -1172,8 +1172,7 @@ void LiveRangeUpdater::print(raw_ostream &OS) const { OS << '\n'; } -void LiveRangeUpdater::dump() const -{ +LLVM_DUMP_METHOD void LiveRangeUpdater::dump() const { print(errs()); } -- cgit v1.2.3