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