mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-28 22:24:28 +00:00
Apparently the check for direct calls is unnecessary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130716 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1839,9 +1839,9 @@ bool ARMFastISel::SelectCall(const Instruction *I) {
|
|||||||
// Can't handle inline asm or worry about intrinsics yet.
|
// Can't handle inline asm or worry about intrinsics yet.
|
||||||
if (isa<InlineAsm>(Callee) || isa<IntrinsicInst>(CI)) return false;
|
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);
|
const GlobalValue *GV = dyn_cast<GlobalValue>(Callee);
|
||||||
if (!GV || Subtarget->GVIsIndirectSymbol(GV, TM.getRelocationModel()))
|
if (!GV)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Check the calling convention.
|
// Check the calling convention.
|
||||||
|
Reference in New Issue
Block a user