Remove useless call to isOSCygMing()
[oota-llvm.git] / include / llvm / ADT / IntrusiveRefCntPtr.h
index 650b44ce48fadfba740f818cf6ff3001b6e176dc..c859c98d06b20cd53b34152257b651546938662f 100644 (file)
@@ -177,9 +177,6 @@ public:
 
     T* get() const { return Obj; }
 
-    /// Deprecated: use get().
-    T* getPtr() const { return Obj; }
-
     LLVM_EXPLICIT operator bool() const { return Obj; }
 
     void swap(IntrusiveRefCntPtr& other) {
@@ -200,6 +197,9 @@ public:
   private:
     void retain() { if (Obj) IntrusiveRefCntPtrInfo<T>::retain(Obj); }
     void release() { if (Obj) IntrusiveRefCntPtrInfo<T>::release(Obj); }
+
+    template <typename X>
+    friend class IntrusiveRefCntPtr;
   };
 
   template<class T, class U>