* Add #include

* Fix #endif problems
* Change to getCalledValue instead of getCalledMethod

llvm-svn: 767
This commit is contained in:
Chris Lattner 2001-10-13 06:54:30 +00:00
parent 675db8db26
commit a742b6acf3
1 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@
#include "llvm/BasicBlock.h" #include "llvm/BasicBlock.h"
#include "llvm/Method.h" #include "llvm/Method.h"
#include "llvm/ConstPoolVals.h" #include "llvm/ConstPoolVals.h"
#include <math.h>
//******************** Internal Data Declarations ************************/ //******************** Internal Data Declarations ************************/
@ -1107,7 +1107,7 @@ CreateLoadConstInstr(const TargetMachine &target,
dest); dest);
} }
else else
#endif MOVE_INT_TO_FP_REG_AVAILABLE #endif /*MOVE_INT_TO_FP_REG_AVAILABLE*/
{ {
// Make an instruction sequence to load the constant, viz: // 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. // any) as implicit operands of the CALL machine instruction.
{ {
CallInst *callInstr = cast<CallInst>(subtreeRoot->getInstruction()); CallInst *callInstr = cast<CallInst>(subtreeRoot->getInstruction());
Method* callee = callInstr->getCalledMethod(); Value *callee = callInstr->getCalledValue();
Instruction* jmpAddrReg = new TmpInstruction(Instruction::UserOp1, Instruction* jmpAddrReg = new TmpInstruction(Instruction::UserOp1,
callee, NULL); callee, NULL);