From: Reid Spencer Date: Fri, 11 Jun 2004 03:06:43 +0000 (+0000) Subject: Revert an unneeded interface change to Instruction.h X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=8a9a3706ffad58bdbe69efce3b58749038341e9d;p=oota-llvm.git 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 --- diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index 1d863483e0c..86f2a056cb9 100644 --- a/include/llvm/Instruction.h +++ b/include/llvm/Instruction.h @@ -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; } diff --git a/lib/Bytecode/Analyzer/Analyzer.cpp b/lib/Bytecode/Analyzer/Analyzer.cpp index 3500ed09ea0..d8e75957bbe 100644 --- a/lib/Bytecode/Analyzer/Analyzer.cpp +++ b/lib/Bytecode/Analyzer/Analyzer.cpp @@ -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); } diff --git a/lib/Bytecode/Reader/Analyzer.cpp b/lib/Bytecode/Reader/Analyzer.cpp index 3500ed09ea0..d8e75957bbe 100644 --- a/lib/Bytecode/Reader/Analyzer.cpp +++ b/lib/Bytecode/Reader/Analyzer.cpp @@ -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); }