diff options
| author | Eric Christopher <echristo@apple.com> | 2010-10-01 21:33:12 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@apple.com> | 2010-10-01 21:33:12 +0000 |
| commit | 9d0136274b28cf15540d19e7cd0cd5b8eb0bf51b (patch) | |
| tree | 0ff329482e1a1b64a9c6fc37088978cffee82265 | |
| parent | de744dcce12c58d31eab921e50de957da7efc4fb (diff) | |
| download | bcm5719-llvm-9d0136274b28cf15540d19e7cd0cd5b8eb0bf51b.tar.gz bcm5719-llvm-9d0136274b28cf15540d19e7cd0cd5b8eb0bf51b.zip | |
Direct calls only for arm fast isel for now.
llvm-svn: 115350
| -rw-r--r-- | llvm/lib/Target/ARM/ARMFastISel.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMFastISel.cpp b/llvm/lib/Target/ARM/ARMFastISel.cpp index 9c35d0a2b4c..2d38aff416e 100644 --- a/llvm/lib/Target/ARM/ARMFastISel.cpp +++ b/llvm/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); |

