Added LLVM copyright header (for lack of a better term).
[oota-llvm.git] / include / llvm / Instruction.h
index 1b85e91cd0b303a1e276ff04c3c83fd071a3ecb6..f23fe32ef359982d3e6ebb74421a3e3343fd7212 100644 (file)
@@ -1,4 +1,11 @@
 //===-- llvm/Instruction.h - Instruction class definition -------*- C++ -*-===//
+// 
+//                     The LLVM Compiler Infrastructure
+//
+// This file was developed by the LLVM research group and is distributed under
+// the University of Illinois Open Source License. See LICENSE.TXT for details.
+// 
+//===----------------------------------------------------------------------===//
 //
 // This file contains the declaration of the Instruction class, which is the
 // base class for all of the LLVM instructions.
@@ -30,9 +37,6 @@ protected:
   Instruction(const Type *Ty, unsigned iType, const std::string &Name = "",
               Instruction *InsertBefore = 0);
 public:
-  virtual ~Instruction() {
-    assert(Parent == 0 && "Instruction still embedded in basic block!");
-  }
 
   // Specialize setName to handle symbol table majik...
   virtual void setName(const std::string &name, SymbolTable *ST = 0);
@@ -99,10 +103,10 @@ public:
 
   /// isTrappingInstruction - Return true if the instruction may trap.
   ///
-  bool isTrappingInstruction() const {
-    return isTrappingInstruction(getOpcode()); 
+  bool isTrapping() const {
+    return isTrapping(getOpcode()); 
   }
-  static bool isTrappingInstruction(unsigned op);
+  static bool isTrapping(unsigned op);
   
   virtual void print(std::ostream &OS) const;