From: Eric Christopher Date: Fri, 1 Oct 2010 21:33:12 +0000 (+0000) Subject: Direct calls only for arm fast isel for now. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e6ca6771e330a0590d529d94f72201c05d0cf6f8;p=oota-llvm.git 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 --- diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp index 9c35d0a2b4c..2d38aff416e 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(Callee) || isa(CI)) return false; - // Only handle global variable Callees + // Only handle global variable Callees that are direct calls. const GlobalValue *GV = dyn_cast(Callee); - if (!GV) return false; + if (!GV || Subtarget->GVIsIndirectSymbol(GV, TM.getRelocationModel())) + return false; // Check the calling convention. ImmutableCallSite CS(CI);