diff options
author | Chris Lattner <sabre@nondot.org> | 2001-10-13 06:54:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-10-13 06:54:30 +0000 |
commit | 749655ff8e2ab604760aaacd91062378a36aa0f2 (patch) | |
tree | fdc8e7fd9bc8d631fb798f07b23e98a5f4b006a1 /lib/Target/SparcV9/SparcV9InstrSelection.cpp | |
parent | d215fd1f5610033fbe704c975805790530262d26 (diff) | |
download | external_llvm-749655ff8e2ab604760aaacd91062378a36aa0f2.zip external_llvm-749655ff8e2ab604760aaacd91062378a36aa0f2.tar.gz external_llvm-749655ff8e2ab604760aaacd91062378a36aa0f2.tar.bz2 |
* Add #include
* Fix #endif problems
* Change to getCalledValue instead of getCalledMethod
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@767 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/SparcV9InstrSelection.cpp')
-rw-r--r-- | lib/Target/SparcV9/SparcV9InstrSelection.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/SparcV9/SparcV9InstrSelection.cpp b/lib/Target/SparcV9/SparcV9InstrSelection.cpp index 6f8edf5..891c319 100644 --- a/lib/Target/SparcV9/SparcV9InstrSelection.cpp +++ b/lib/Target/SparcV9/SparcV9InstrSelection.cpp @@ -23,7 +23,7 @@ #include "llvm/BasicBlock.h" #include "llvm/Method.h" #include "llvm/ConstPoolVals.h" - +#include <math.h> //******************** Internal Data Declarations ************************/ @@ -1107,7 +1107,7 @@ CreateLoadConstInstr(const TargetMachine &target, dest); } else -#endif MOVE_INT_TO_FP_REG_AVAILABLE +#endif /*MOVE_INT_TO_FP_REG_AVAILABLE*/ { // Make an instruction sequence to load the constant, viz: @@ -2050,7 +2050,7 @@ GetInstructionsByRule(InstructionNode* subtreeRoot, // any) as implicit operands of the CALL machine instruction. { CallInst *callInstr = cast<CallInst>(subtreeRoot->getInstruction()); - Method* callee = callInstr->getCalledMethod(); + Value *callee = callInstr->getCalledValue(); Instruction* jmpAddrReg = new TmpInstruction(Instruction::UserOp1, callee, NULL); |