mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 04:33:40 +00:00
Convert to use new style casts instead of direct checking
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1990 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e590ff260e
commit
b0d04726db
@ -2105,7 +2105,7 @@ GetInstructionsByRule(InstructionNode* subtreeRoot,
|
|||||||
// the PC-relative address fits in the CALL address field (22 bits).
|
// the PC-relative address fits in the CALL address field (22 bits).
|
||||||
// Use JMPL for indirect calls.
|
// Use JMPL for indirect calls.
|
||||||
//
|
//
|
||||||
if (callee->getValueType() == Value::MethodVal)
|
if (isa<Function>(callee))
|
||||||
{ // direct function call
|
{ // direct function call
|
||||||
M = new MachineInstr(CALL);
|
M = new MachineInstr(CALL);
|
||||||
M->SetMachineOperandVal(0, MachineOperand::MO_PCRelativeDisp,
|
M->SetMachineOperandVal(0, MachineOperand::MO_PCRelativeDisp,
|
||||||
@ -2133,7 +2133,7 @@ GetInstructionsByRule(InstructionNode* subtreeRoot,
|
|||||||
mvec.back()->addImplicitRef(callInstr, /*isDef*/ true);
|
mvec.back()->addImplicitRef(callInstr, /*isDef*/ true);
|
||||||
|
|
||||||
// For the CALL instruction, the ret. addr. reg. is also implicit
|
// For the CALL instruction, the ret. addr. reg. is also implicit
|
||||||
if (callee->getValueType() == Value::MethodVal)
|
if (isa<Function>(callee))
|
||||||
mvec.back()->addImplicitRef(retAddrReg, /*isDef*/ true);
|
mvec.back()->addImplicitRef(retAddrReg, /*isDef*/ true);
|
||||||
|
|
||||||
// delay slot
|
// delay slot
|
||||||
|
Loading…
x
Reference in New Issue
Block a user