[llvm-commits] [llvm] r156975 - /llvm/trunk/utils/TableGen/IntrinsicEmitter.cpp

Francois Pichet pichet2000 at gmail.com
Wed May 16 21:00:04 PDT 2012


Author: fpichet
Date: Wed May 16 23:00:03 2012
New Revision: 156975

URL: http://llvm.org/viewvc/llvm-project?rev=156975&view=rev
Log:
I forgot the #ifdef _MSC_VER guard in my last commit.

Modified:
    llvm/trunk/utils/TableGen/IntrinsicEmitter.cpp

Modified: llvm/trunk/utils/TableGen/IntrinsicEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/IntrinsicEmitter.cpp?rev=156975&r1=156974&r2=156975&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/IntrinsicEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/IntrinsicEmitter.cpp Wed May 16 23:00:03 2012
@@ -466,7 +466,9 @@
   Sig.push_back(~0U);
 }
 
+#ifdef _MSC_VER
 #pragma optimize("",off) // MSVC 2010 optimizer can't deal with this function.
+#endif 
 
 static void EncodeFixedType(Record *R, SmallVectorImpl<unsigned> &Sig) {
   
@@ -532,7 +534,10 @@
   assert(VT != MVT::isVoid);
   EncodeFixedValueType(VT, Sig);
 }
+
+#ifdef _MSC_VER
 #pragma optimize("",on)
+#endif
 
 /// ComputeFixedEncoding - If we can encode the type signature for this
 /// intrinsic into 32 bits, return it.  If not, return ~0U.





More information about the llvm-commits mailing list