[llvm] r175319 - Suppress a GCC -Wunused-variable warning in -Asserts builds

Matt Beaumont-Gay matthewbg at google.com
Fri Feb 15 15:12:33 PST 2013


Author: matthewbg
Date: Fri Feb 15 17:12:33 2013
New Revision: 175319

URL: http://llvm.org/viewvc/llvm-project?rev=175319&view=rev
Log:
Suppress a GCC -Wunused-variable warning in -Asserts builds

Modified:
    llvm/trunk/lib/MC/MCObjectStreamer.cpp

Modified: llvm/trunk/lib/MC/MCObjectStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCObjectStreamer.cpp?rev=175319&r1=175318&r2=175319&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCObjectStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCObjectStreamer.cpp Fri Feb 15 17:12:33 2013
@@ -226,8 +226,10 @@ void MCObjectStreamer::EmitInstToFragmen
   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);





More information about the llvm-commits mailing list