aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugValues.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-01-28 06:53:55 +0000
committerMatthias Braun <matze@braunis.de>2017-01-28 06:53:55 +0000
commit194ded551c3c1841bb1e87390e76f4a081e01dee (patch)
treebf7edbb0ea5a9b44ecc8a4a8868db22cc3bbd589 /llvm/lib/CodeGen/LiveDebugValues.cpp
parent655f794964b65a4051c8de0b2b26206dc6284876 (diff)
downloadllvm-194ded551c3c1841bb1e87390e76f4a081e01dee.zip
llvm-194ded551c3c1841bb1e87390e76f4a081e01dee.tar.gz
llvm-194ded551c3c1841bb1e87390e76f4a081e01dee.tar.bz2
Use print() instead of dump() in code
llvm-svn: 293371
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveDebugValues.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugValues.cpp b/llvm/lib/CodeGen/LiveDebugValues.cpp
index c945376..1311676 100644
--- a/llvm/lib/CodeGen/LiveDebugValues.cpp
+++ b/llvm/lib/CodeGen/LiveDebugValues.cpp
@@ -150,7 +150,9 @@ private:
/// dominates MBB.
bool dominates(MachineBasicBlock &MBB) const { return UVS.dominates(&MBB); }
- void dump() const { MI.dump(); }
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
+ LLVM_DUMP_METHOD void dump() const { MI.dump(); }
+#endif
bool operator==(const VarLoc &Other) const {
return Var == Other.Var && Loc.Hash == Other.Loc.Hash;
@@ -282,6 +284,7 @@ void LiveDebugValues::getAnalysisUsage(AnalysisUsage &AU) const {
// Debug Range Extension Implementation
//===----------------------------------------------------------------------===//
+#ifndef NDEBUG
void LiveDebugValues::printVarLocInMBB(const MachineFunction &MF,
const VarLocInMBB &V,
const VarLocMap &VarLocIDs,
@@ -300,6 +303,7 @@ void LiveDebugValues::printVarLocInMBB(const MachineFunction &MF,
}
Out << "\n";
}
+#endif
/// End all previous ranges related to @MI and start a new range from @MI
/// if it is a DBG_VALUE instr.