Revert the new EH instructions
[oota-llvm.git] / include / llvm / IR / Instruction.h
index a81c97db96e2cb7bdd6295855a0f0d866ff3123c..31f363f70a5b13100b899f536d9bfa393bd781fe 100644 (file)
@@ -388,20 +388,6 @@ public:
     return mayWriteToMemory() || mayThrow() || !mayReturn();
   }
 
-  /// \brief Return true if the instruction is a variety of EH-block.
-  bool isEHBlock() const {
-    switch (getOpcode()) {
-    case Instruction::CatchBlock:
-    case Instruction::CatchEndBlock:
-    case Instruction::CleanupBlock:
-    case Instruction::LandingPad:
-    case Instruction::TerminateBlock:
-      return true;
-    default:
-      return false;
-    }
-  }
-
   /// clone() - Create a copy of 'this' instruction that is identical in all
   /// ways except the following:
   ///   * The instruction has no parent