diff options
-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); |