summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
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/AsmPrinter
parent655f794964b65a4051c8de0b2b26206dc6284876 (diff)
downloadbcm5719-llvm-194ded551c3c1841bb1e87390e76f4a081e01dee.tar.gz
bcm5719-llvm-194ded551c3c1841bb1e87390e76f4a081e01dee.zip
Use print() instead of dump() in code
llvm-svn: 293371
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h b/llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h
index 36fb1507ddc..a68e8cc6b4b 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h
+++ b/llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h
@@ -76,7 +76,8 @@ public:
const DIExpression *getExpression() const { return Expression; }
friend bool operator==(const Value &, const Value &);
friend bool operator<(const Value &, const Value &);
- void dump() const {
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
+ LLVM_DUMP_METHOD void dump() const {
if (isLocation()) {
llvm::dbgs() << "Loc = { reg=" << Loc.getReg() << " ";
if (Loc.isIndirect())
@@ -90,6 +91,7 @@ public:
if (Expression)
Expression->dump();
}
+#endif
};
private:
OpenPOWER on IntegriCloud