add helper method.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34155 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-02-10 19:54:24 +00:00
parent ec6478b8f3
commit 68ce9ba666

View File

@ -34,6 +34,9 @@ protected:
void RegisterManagedStatic(void *ObjPtr, void (*deleter)(void*)) const;
public:
/// isConstructed - Return true if this object has not been created yet.
bool isConstructed() const { return Ptr != 0; }
void destroy() const;
};