summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2017-01-11 17:33:37 +0000
committerTim Northover <tnorthover@apple.com>2017-01-11 17:33:37 +0000
commit778d0816ab31f09b5971e65f7c2ae5c2a571c0cc (patch)
treeaba81e06d05128d1de66aff9a4ec2a9a5c3c6239 /llvm/lib
parent42e6b4fd98a05fc036e7e071a6d8097b15f3bcb1 (diff)
downloadbcm5719-llvm-778d0816ab31f09b5971e65f7c2ae5c2a571c0cc.tar.gz
bcm5719-llvm-778d0816ab31f09b5971e65f7c2ae5c2a571c0cc.zip
GlobalISel: only print debug info with -debug. NFC.
Turns out DEBUG(...) has uses even inside NDEBUG checks. llvm-svn: 291685
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp b/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
index 7d405dd92ac..b722177a9f7 100644
--- a/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
@@ -74,7 +74,7 @@ bool RegisterBankInfo::verify(const TargetRegisterInfo &TRI) const {
const RegisterBank &RegBank = getRegBank(Idx);
assert(Idx == RegBank.getID() &&
"ID does not match the index in the array");
- dbgs() << "Verify " << RegBank << '\n';
+ DEBUG(dbgs() << "Verify " << RegBank << '\n');
assert(RegBank.verify(TRI) && "RegBank is invalid");
}
#endif // NDEBUG
OpenPOWER on IntegriCloud