summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86FastISel.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-06-23 17:54:54 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-06-23 17:54:54 +0000
commit3a0c5e52ff3ea056329fbbacd6f7e2bf281bf3ee (patch)
treedffc31c86618b0e6da27453ece2c5af479e68c7f /llvm/lib/Target/X86/X86FastISel.cpp
parent080d8fd26763389a3337d638c9429d0a6a094d38 (diff)
downloadbcm5719-llvm-3a0c5e52ff3ea056329fbbacd6f7e2bf281bf3ee.tar.gz
bcm5719-llvm-3a0c5e52ff3ea056329fbbacd6f7e2bf281bf3ee.zip
Remove TargetOptions.h dependency from X86Subtarget.
llvm-svn: 133726
Diffstat (limited to 'llvm/lib/Target/X86/X86FastISel.cpp')
-rw-r--r--llvm/lib/Target/X86/X86FastISel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp
index f1b9972530c..82f5d3a50de 100644
--- a/llvm/lib/Target/X86/X86FastISel.cpp
+++ b/llvm/lib/Target/X86/X86FastISel.cpp
@@ -15,6 +15,7 @@
#include "X86.h"
#include "X86InstrBuilder.h"
+#include "X86ISelLowering.h"
#include "X86RegisterInfo.h"
#include "X86Subtarget.h"
#include "X86TargetMachine.h"
@@ -1493,7 +1494,8 @@ bool X86FastISel::DoSelectCall(const Instruction *I, const char *MemIntName) {
return false;
// Fast-isel doesn't know about callee-pop yet.
- if (Subtarget->IsCalleePop(isVarArg, CC))
+ if (X86::isCalleePop(CC, Subtarget->is64Bit(), isVarArg,
+ GuaranteedTailCallOpt))
return false;
// Check whether the function can return without sret-demotion.
OpenPOWER on IntegriCloud