summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-13 06:54:30 +0000
committerChris Lattner <sabre@nondot.org>2001-10-13 06:54:30 +0000
commita742b6acf3af12bb41c4c6c3fa7f5e1048f9016a (patch)
treed59ac51d26db48f680eef4343eedb761cfaea617 /llvm/lib/Target
parent675db8db26f70dd35194e203b28521595f754150 (diff)
downloadbcm5719-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.cpp6
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);
OpenPOWER on IntegriCloud