From a1a702cdd23221e6e3f36632be91150138958e9d Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 13 Apr 2007 18:12:09 +0000 Subject: Rename Value::getValueType to getValueID, to avoid confusion with other things named getValueType. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35964 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/PatternMatch.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/llvm/Support/PatternMatch.h') diff --git a/include/llvm/Support/PatternMatch.h b/include/llvm/Support/PatternMatch.h index ab9e45f312..d8099a9aff 100644 --- a/include/llvm/Support/PatternMatch.h +++ b/include/llvm/Support/PatternMatch.h @@ -81,7 +81,7 @@ struct BinaryOp_match { template bool match(OpTy *V) { - if (V->getValueType() == Value::InstructionVal + Opcode) { + if (V->getValueID() == Value::InstructionVal + Opcode) { ConcreteTy *I = cast(V); return I->getOpcode() == Opcode && L.match(I->getOperand(0)) && R.match(I->getOperand(1)); @@ -195,8 +195,8 @@ struct Shr_match { template bool match(OpTy *V) { - if (V->getValueType() == Value::InstructionVal + Instruction::LShr || - V->getValueType() == Value::InstructionVal + Instruction::AShr) { + if (V->getValueID() == Value::InstructionVal + Instruction::LShr || + V->getValueID() == Value::InstructionVal + Instruction::AShr) { ConcreteTy *I = cast(V); return (I->getOpcode() == Instruction::AShr || I->getOpcode() == Instruction::LShr) && -- cgit v1.2.3