Do not crash when dealing with invoke and unwind instructions!
[oota-llvm.git] / tools / bugpoint / ListReducer.h
index cee68926c9c3dd279c50a422598cf9a6b1de1cd2..0ad24065cf3cf9e7fea34852e710df1aa2a97ba3 100644 (file)
@@ -1,4 +1,11 @@
 //===- ListReducer.h - Trim down list while retaining property --*- 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 class is to be used as a base class for operations that want to zero in
 // on a subset of the input which still causes the bug we are tracking.
@@ -10,6 +17,8 @@
 
 #include <vector>
 
+namespace llvm {
+
 template<typename ElTy>
 struct ListReducer {
   enum TestResult {
@@ -68,7 +77,7 @@ struct ListReducer {
         break;
       case NoFailure:
         // Otherwise the property doesn't hold.  Some of the elements we removed
-        // must be neccesary to maintain the property.
+        // must be necessary to maintain the property.
         MidTop = Mid;
         break;
       }
@@ -102,4 +111,6 @@ struct ListReducer {
   }
 };
 
+} // End llvm namespace
+
 #endif