* Add #include
authorChris Lattner <sabre@nondot.org>
Sat, 13 Oct 2001 06:54:30 +0000 (06:54 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 13 Oct 2001 06:54:30 +0000 (06:54 +0000)
* 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

lib/Target/SparcV9/SparcV9InstrSelection.cpp

index 6f8edf57246c8363840f0a8c5f3e2c996671bd19..891c319c0097d69cb18b8db2b7ae11025af128b7 100644 (file)
@@ -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);