summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-07-16 06:14:37 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-07-16 06:14:37 +0000
commit95454e7a2f5315d931855221d73c3d503405f214 (patch)
tree9b39360800f303773bc36493c74fcb374db17e94 /llvm
parent87b2fe9474d8f7df6775720c8dee0813f2fe2a2c (diff)
downloadbcm5719-llvm-95454e7a2f5315d931855221d73c3d503405f214.tar.gz
bcm5719-llvm-95454e7a2f5315d931855221d73c3d503405f214.zip
Use __attribute__((noinline)) only if compiled by gcc.
llvm-svn: 29161
Diffstat (limited to 'llvm')
-rw-r--r--llvm/utils/TableGen/DAGISelEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/DAGISelEmitter.cpp b/llvm/utils/TableGen/DAGISelEmitter.cpp
index eca851c5f69..a28b62eaf34 100644
--- a/llvm/utils/TableGen/DAGISelEmitter.cpp
+++ b/llvm/utils/TableGen/DAGISelEmitter.cpp
@@ -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)) ";
OpenPOWER on IntegriCloud