]> granicus.if.org Git - llvm/commitdiff
GlobalISel: only print debug info with -debug. NFC.
authorTim Northover <tnorthover@apple.com>
Wed, 11 Jan 2017 17:33:37 +0000 (17:33 +0000)
committerTim Northover <tnorthover@apple.com>
Wed, 11 Jan 2017 17:33:37 +0000 (17:33 +0000)
Turns out DEBUG(...) has uses even inside NDEBUG checks.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291685 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/GlobalISel/RegisterBankInfo.cpp

index 7d405dd92ac3c619e325a9d8092131b38d86c283..b722177a9f7e97eae54009bc5ff71835e1ea3656 100644 (file)
@@ -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