mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +00:00
Revert an unneeded interface change to Instruction.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14137 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -95,8 +95,6 @@ public:
|
|||||||
return isTerminator(iType);
|
return isTerminator(iType);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline bool isPhiNode(unsigned OpCode) { return OpCode == PHI; }
|
|
||||||
|
|
||||||
inline bool isBinaryOp() const {
|
inline bool isBinaryOp() const {
|
||||||
return iType >= BinaryOpsBegin && iType < BinaryOpsEnd;
|
return iType >= BinaryOpsBegin && iType < BinaryOpsEnd;
|
||||||
}
|
}
|
||||||
|
@@ -191,7 +191,7 @@ public:
|
|||||||
bca.numOperands += Operands.size();
|
bca.numOperands += Operands.size();
|
||||||
if ( currFunc ) {
|
if ( currFunc ) {
|
||||||
currFunc->numInstructions++;
|
currFunc->numInstructions++;
|
||||||
if ( Instruction::isPhiNode(Opcode) ) currFunc->numPhis++;
|
if ( Opcode == Instruction::PHI ) currFunc->numPhis++;
|
||||||
}
|
}
|
||||||
return Instruction::isTerminator(Opcode);
|
return Instruction::isTerminator(Opcode);
|
||||||
}
|
}
|
||||||
|
@@ -191,7 +191,7 @@ public:
|
|||||||
bca.numOperands += Operands.size();
|
bca.numOperands += Operands.size();
|
||||||
if ( currFunc ) {
|
if ( currFunc ) {
|
||||||
currFunc->numInstructions++;
|
currFunc->numInstructions++;
|
||||||
if ( Instruction::isPhiNode(Opcode) ) currFunc->numPhis++;
|
if ( Opcode == Instruction::PHI ) currFunc->numPhis++;
|
||||||
}
|
}
|
||||||
return Instruction::isTerminator(Opcode);
|
return Instruction::isTerminator(Opcode);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user