I forgot the #ifdef _MSC_VER guard in my last commit.
authorFrancois Pichet <pichet2000@gmail.com>
Thu, 17 May 2012 04:00:03 +0000 (04:00 +0000)
committerFrancois Pichet <pichet2000@gmail.com>
Thu, 17 May 2012 04:00:03 +0000 (04:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156975 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/IntrinsicEmitter.cpp

index 0642f59ace5e7fc816a75cc67d2ab0b182da2e73..9630c926ac5a271c3dab434fd807f55ec8f317cc 100644 (file)
@@ -466,7 +466,9 @@ static void EncodeFixedValueType(MVT::SimpleValueType VT,
   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 @@ static void EncodeFixedType(Record *R, SmallVectorImpl<unsigned> &Sig) {
   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.