Apparently the check for direct calls is unnecessary.
authorEric Christopher <echristo@apple.com>
Mon, 2 May 2011 20:16:33 +0000 (20:16 +0000)
committerEric Christopher <echristo@apple.com>
Mon, 2 May 2011 20:16:33 +0000 (20:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130716 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMFastISel.cpp

index 3baf274b76b814cf55722b7e4e8c72f782b948c4..f5c4605e3eab20d42cb8104f15ca315d0dd656cf 100644 (file)
@@ -1839,9 +1839,9 @@ 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 that are direct calls.
+  // Only handle global variable Callees.
   const GlobalValue *GV = dyn_cast<GlobalValue>(Callee);
-  if (!GV || Subtarget->GVIsIndirectSymbol(GV, TM.getRelocationModel()))
+  if (!GV)
     return false;
 
   // Check the calling convention.