summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-03-26 17:58:12 +0000
committerChris Lattner <sabre@nondot.org>2002-03-26 17:58:12 +0000
commit5d088b00bf14601f3f44573e9665a9668ea74603 (patch)
treefe2d204eaeb90ea872244a6df12dbd46561eba93 /llvm/lib
parent0df67e347a361fd7ebf30503c5c348dcdff20423 (diff)
downloadbcm5719-llvm-5d088b00bf14601f3f44573e9665a9668ea74603.tar.gz
bcm5719-llvm-5d088b00bf14601f3f44573e9665a9668ea74603.zip
Convert to use new style casts instead of direct checking
llvm-svn: 1990
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/Sparc/SparcInstrSelection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp b/llvm/lib/Target/Sparc/SparcInstrSelection.cpp
index 2ecae9e2117..533c8cf7211 100644
--- a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp
+++ b/llvm/lib/Target/Sparc/SparcInstrSelection.cpp
@@ -2105,7 +2105,7 @@ GetInstructionsByRule(InstructionNode* subtreeRoot,
// the PC-relative address fits in the CALL address field (22 bits).
// Use JMPL for indirect calls.
//
- if (callee->getValueType() == Value::MethodVal)
+ if (isa<Function>(callee))
{ // direct function call
M = new MachineInstr(CALL);
M->SetMachineOperandVal(0, MachineOperand::MO_PCRelativeDisp,
@@ -2133,7 +2133,7 @@ GetInstructionsByRule(InstructionNode* subtreeRoot,
mvec.back()->addImplicitRef(callInstr, /*isDef*/ true);
// 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);
// delay slot
OpenPOWER on IntegriCloud