Revision of Brian's threading support library to be a bit more generic and
[oota-llvm.git] / include / llvm / AbstractTypeUser.h
index 9e3edddbc2235c16a14892413a0da3c8ed8777d8..d21116539419235e99acfec25e859edb79116526 100644 (file)
@@ -37,6 +37,8 @@
 //
 #include <cassert>
 
+namespace llvm {
+
 class Type;
 class DerivedType;
 
@@ -141,6 +143,8 @@ public:
     addRef();
   }
 
+  ~PATypeHolder() { dropRef(); }
+
   operator const Type *() const { return get(); }
   const Type *get() const;
 
@@ -165,4 +169,6 @@ private:
   void dropRef();
 };
 
+} // End llvm namespace
+
 #endif