Changes For Bug 352
[oota-llvm.git] / include / llvm / Support / TypeInfo.h
index 29f4e22a9913fb5231cedff43f9135487b84d964..54043af9defbbb30e2767403be7792f15af5177c 100644 (file)
@@ -1,4 +1,11 @@
-//===- Support/TypeInfo.h - Support class for type_info objects --*- C++ -*--=//
+//===- llvm/Support/TypeInfo.h - Support for type_info objects -*- 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 makes std::type_info objects behave like first class objects that
 // can be put in maps and hashtables.  This code is based off of code in the
@@ -11,6 +18,8 @@
 
 #include <typeinfo>
 
+namespace llvm {
+
 struct TypeInfo {
   TypeInfo() {                     // needed for containers
     struct Nil {};  // Anonymous class distinct from all others...
@@ -27,7 +36,7 @@ struct TypeInfo {
 
   // Compatibility functions
   bool before(const TypeInfo &rhs) const {
-    return Info->before(*rhs.Info);
+    return Info->before(*rhs.Info) != 0;
   }
   const char *getClassName() const {
     return Info->name();
@@ -62,4 +71,6 @@ inline bool operator>=(const TypeInfo &lhs, const TypeInfo &rhs) {
   return !(lhs < rhs);
 }
 
+} // End llvm namespace
+
 #endif