Merging the linear scan register allocator in trunk. It currently passes most tests...
[oota-llvm.git] / include / llvm / GlobalValue.h
index f2349bc3cbb6073a1d3e8dfd5a5396b2dca41350..942d9b9a4081ded2b6e951a24dfbea4943ba8d43 100644 (file)
@@ -18,6 +18,9 @@
 #define LLVM_GLOBALVALUE_H
 
 #include "llvm/User.h"
+
+namespace llvm {
+
 class PointerType;
 class Module;
 
@@ -43,7 +46,7 @@ public:
 
   /// getType - Global values are always pointers.
   inline const PointerType *getType() const {
-    return (const PointerType*)User::getType();
+    return reinterpret_cast<const PointerType*>(User::getType());
   }
 
   bool hasExternalLinkage()  const { return Linkage == ExternalLinkage; }
@@ -71,4 +74,6 @@ public:
   }
 };
 
+} // End llvm namespace
+
 #endif