aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/Sparc/InstSelectSimple.cpp
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-06-15 21:09:46 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-06-15 21:09:46 +0000
commitd6a10537457cea6f8fabc0bd7a3cd89d5ab593ae (patch)
treef68e3bf939e937d3c299aaccf168bf93f3882814 /lib/Target/Sparc/InstSelectSimple.cpp
parentd1cd3285601d4accf370779ac520c1e494a08b87 (diff)
Fix thinko in visitor... ShiftInsts should currently be delegated
to visitBinaryOperator. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14182 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc/InstSelectSimple.cpp')
-rw-r--r--lib/Target/Sparc/InstSelectSimple.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/Sparc/InstSelectSimple.cpp b/lib/Target/Sparc/InstSelectSimple.cpp
index 398198ff00..fac772b65c 100644
--- a/lib/Target/Sparc/InstSelectSimple.cpp
+++ b/lib/Target/Sparc/InstSelectSimple.cpp
@@ -66,7 +66,7 @@ namespace {
}
void visitBinaryOperator(Instruction &I);
- void visitShiftInstruction(Instruction &I) { visitBinaryOperator(I); }
+ void visitShiftInst (ShiftInst &SI) { visitBinaryOperator (SI); }
void visitSetCondInst(Instruction &I);
void visitCallInst(CallInst &I);
void visitReturnInst(ReturnInst &I);
@@ -594,6 +594,7 @@ void V8ISel::visitGetElementPtrInst (GetElementPtrInst &I) {
I.op_begin ()+1, I.op_end (), outputReg);
}
+
void V8ISel::visitBinaryOperator (Instruction &I) {
unsigned DestReg = getReg (I);
unsigned Op0Reg = getReg (I.getOperand (0));