Suppress a GCC -Wunused-variable warning in -Asserts builds
authorMatt Beaumont-Gay <matthewbg@google.com>
Fri, 15 Feb 2013 23:12:33 +0000 (23:12 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Fri, 15 Feb 2013 23:12:33 +0000 (23:12 +0000)
llvm-svn: 175319

llvm/lib/MC/MCObjectStreamer.cpp

index b6c7341..0d2ce83 100644 (file)
@@ -226,8 +226,10 @@ void MCObjectStreamer::EmitInstToFragment(const MCInst &Inst) {
   IF->getContents().append(Code.begin(), Code.end());
 }
 
+#ifndef NDEBUG
 static const char *BundlingNotImplementedMsg =
   "Aligned bundling is not implemented for this object format";
+#endif
 
 void MCObjectStreamer::EmitBundleAlignMode(unsigned AlignPow2) {
   llvm_unreachable(BundlingNotImplementedMsg);