add helper method.

llvm-svn: 34155
This commit is contained in:
Chris Lattner 2007-02-10 19:54:24 +00:00
parent 13b4f184fd
commit e5eb7d79d3

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;
};