aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/ARMFastISel.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-10-01 21:33:12 +0000
committerEric Christopher <echristo@apple.com>2010-10-01 21:33:12 +0000
commit50ed1bbd11e637b0a0ddbd939748d570d7a436d5 (patch)
treeb718962d5e4e1490490af3b413380959dd812cf2 /lib/Target/ARM/ARMFastISel.cpp
parent0737f58509e44f2525a1997811cfff96de444f6e (diff)
downloadexternal_llvm-50ed1bbd11e637b0a0ddbd939748d570d7a436d5.zip
external_llvm-50ed1bbd11e637b0a0ddbd939748d570d7a436d5.tar.gz
external_llvm-50ed1bbd11e637b0a0ddbd939748d570d7a436d5.tar.bz2
Direct calls only for arm fast isel for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115350 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMFastISel.cpp')
-rw-r--r--lib/Target/ARM/ARMFastISel.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp
index 9c35d0a..2d38aff 100644
--- a/lib/Target/ARM/ARMFastISel.cpp
+++ b/lib/Target/ARM/ARMFastISel.cpp
@@ -1291,9 +1291,10 @@ bool ARMFastISel::SelectCall(const Instruction *I) {
// Can't handle inline asm or worry about intrinsics yet.
if (isa<InlineAsm>(Callee) || isa<IntrinsicInst>(CI)) return false;
- // Only handle global variable Callees
+ // Only handle global variable Callees that are direct calls.
const GlobalValue *GV = dyn_cast<GlobalValue>(Callee);
- if (!GV) return false;
+ if (!GV || Subtarget->GVIsIndirectSymbol(GV, TM.getRelocationModel()))
+ return false;
// Check the calling convention.
ImmutableCallSite CS(CI);