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 | a742b6acf3af12bb41c4c6c3fa7f5e1048f9016a (patch) | |
| tree | d59ac51d26db48f680eef4343eedb761cfaea617 /llvm/lib/Target | |
| parent | 675db8db26f70dd35194e203b28521595f754150 (diff) | |
| download | bcm5719-llvm-a742b6acf3af12bb41c4c6c3fa7f5e1048f9016a.tar.gz bcm5719-llvm-a742b6acf3af12bb41c4c6c3fa7f5e1048f9016a.zip | |
* Add #include
* Fix #endif problems
* Change to getCalledValue instead of getCalledMethod
llvm-svn: 767
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/Sparc/SparcInstrSelection.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp b/llvm/lib/Target/Sparc/SparcInstrSelection.cpp index 6f8edf57246..891c319c009 100644 --- a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp +++ b/llvm/lib/Target/Sparc/SparcInstrSelection.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); |

