summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-05-02 20:16:33 +0000
committerEric Christopher <echristo@apple.com>2011-05-02 20:16:33 +0000
commit39b56b4b9f562aded08846ad53c57c378fb2078b (patch)
treea5f753ec3600c69ab12ac53d0f182670db47f43d /llvm
parent6297a715dcf7b7190f67641f38926b7394fdb318 (diff)
downloadbcm5719-llvm-39b56b4b9f562aded08846ad53c57c378fb2078b.tar.gz
bcm5719-llvm-39b56b4b9f562aded08846ad53c57c378fb2078b.zip
Apparently the check for direct calls is unnecessary.
llvm-svn: 130716
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/ARM/ARMFastISel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMFastISel.cpp b/llvm/lib/Target/ARM/ARMFastISel.cpp
index 3baf274b76b..f5c4605e3ea 100644
--- a/llvm/lib/Target/ARM/ARMFastISel.cpp
+++ b/llvm/lib/Target/ARM/ARMFastISel.cpp
@@ -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.
OpenPOWER on IntegriCloud