-//===- Support/TypeInfo.h - Support class for type_info objects -*- C++ -*-===//
+//===- llvm/Support/TypeInfo.h - Support for type_info objects -*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
//
//===----------------------------------------------------------------------===//
-#ifndef SUPPORT_TYPEINFO_H
-#define SUPPORT_TYPEINFO_H
+#ifndef LLVM_SUPPORT_TYPEINFO_H
+#define LLVM_SUPPORT_TYPEINFO_H
#include <typeinfo>
+namespace llvm {
+
struct TypeInfo {
TypeInfo() { // needed for containers
struct Nil {}; // Anonymous class distinct from all others...
// 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();
return !(lhs < rhs);
}
+} // End llvm namespace
+
#endif