From: Chris Lattner Date: Sat, 10 Feb 2007 19:54:24 +0000 (+0000) Subject: add helper method. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=68ce9ba666a7eb8c7eb3fb7888e4418fffd2e716;p=oota-llvm.git add helper method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34155 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/ManagedStatic.h b/include/llvm/Support/ManagedStatic.h index e1585bafa80..a9e7e96b5d7 100644 --- a/include/llvm/Support/ManagedStatic.h +++ b/include/llvm/Support/ManagedStatic.h @@ -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; };