Use __attribute__((noinline)) only if compiled by gcc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29161 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2006-07-16 06:14:37 +00:00
parent f872940dfc
commit fb878a37ba

View 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)) ";