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

llvm-svn: 29161
This commit is contained in:
Evan Cheng 2006-07-16 06:14:37 +00:00
parent 22ef77c90c
commit 1910357655

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