mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-02 07:32:52 +00:00
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
This commit is contained in:
parent
8ec055dbc8
commit
e6ca6771e3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user