Use __attribute__((noinline)) only if compiled by gcc.
authorEvan Cheng <evan.cheng@apple.com>
Sun, 16 Jul 2006 06:14:37 +0000 (06:14 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Sun, 16 Jul 2006 06:14:37 +0000 (06:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29161 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/DAGISelEmitter.cpp

index eca851c5f699ad18ad581d4bda15ce8a6f3131ee..a28b62eaf34350471faeb4991256ba17410b4225 100644 (file)
@@ -3349,7 +3349,7 @@ void DAGISelEmitter::EmitInstructionSelector(std::ostream &OS) {
       }
       CallerCode += ");";
       CalleeCode += ") ";
-#ifndef _MSC_VER
+#ifdef __GNUC__
       // Prevent emission routines from being inlined to reduce selection
       // routines stack frame sizes.
       CalleeCode += "__attribute__((noinline)) ";