1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Revert an unneeded interface change to Instruction.h

llvm-svn: 14137
This commit is contained in:
Reid Spencer 2004-06-11 03:06:43 +00:00
parent 6fc9e8dd94
commit 7172b26a18
3 changed files with 2 additions and 4 deletions

View File

@ -95,8 +95,6 @@ public:
return isTerminator(iType);
}
static inline bool isPhiNode(unsigned OpCode) { return OpCode == PHI; }
inline bool isBinaryOp() const {
return iType >= BinaryOpsBegin && iType < BinaryOpsEnd;
}

View File

@ -191,7 +191,7 @@ public:
bca.numOperands += Operands.size();
if ( currFunc ) {
currFunc->numInstructions++;
if ( Instruction::isPhiNode(Opcode) ) currFunc->numPhis++;
if ( Opcode == Instruction::PHI ) currFunc->numPhis++;
}
return Instruction::isTerminator(Opcode);
}

View File

@ -191,7 +191,7 @@ public:
bca.numOperands += Operands.size();
if ( currFunc ) {
currFunc->numInstructions++;
if ( Instruction::isPhiNode(Opcode) ) currFunc->numPhis++;
if ( Opcode == Instruction::PHI ) currFunc->numPhis++;
}
return Instruction::isTerminator(Opcode);
}