Revert an unneeded interface change to Instruction.h
authorReid Spencer <rspencer@reidspencer.com>
Fri, 11 Jun 2004 03:06:43 +0000 (03:06 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Fri, 11 Jun 2004 03:06:43 +0000 (03:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14137 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Instruction.h
lib/Bytecode/Analyzer/Analyzer.cpp
lib/Bytecode/Reader/Analyzer.cpp

index 1d863483e0c13c75a19c657d5bb1cd16a37fd2b5..86f2a056cb975df4055ed6213d559536375f174a 100644 (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;
   }
index 3500ed09ea04bfa0ef752fcd0c2fbf6edae09c8e..d8e75957bbefcce27c863b7101277098b331fcc1 100644 (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); 
   }
index 3500ed09ea04bfa0ef752fcd0c2fbf6edae09c8e..d8e75957bbefcce27c863b7101277098b331fcc1 100644 (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); 
   }