Merge DEBUG statements.
authorBill Wendling <isanbard@gmail.com>
Mon, 13 Dec 2010 01:03:49 +0000 (01:03 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 13 Dec 2010 01:03:49 +0000 (01:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121660 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/ARMDecoderEmitter.cpp

index 76fa425f450b7b589305bf1f63cbc7c656a91112..c4e78f358ecc3ea886bf2142396e0e6ffb08daea 100644 (file)
@@ -1726,15 +1726,15 @@ ARMDEBackend::populateInstruction(const CodeGenInstruction &CGI,
       return false;
   }
 
-  // Dumps the instruction encoding format.
-  switch (TargetName) {
-  case TARGET_ARM:
-  case TARGET_THUMB:
-    DEBUG(errs() << Name << " " << stringForARMFormat((ARMFormat)Form));
-    break;
-  }
-
   DEBUG({
+      // Dumps the instruction encoding format.
+      switch (TargetName) {
+      case TARGET_ARM:
+      case TARGET_THUMB:
+        errs() << Name << " " << stringForARMFormat((ARMFormat)Form);
+        break;
+      }
+
       errs() << " ";
 
       // Dumps the instruction encoding bits.