aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Support/ManagedStatic.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Support/ManagedStatic.h b/include/llvm/Support/ManagedStatic.h
index e1585bafa8..a9e7e96b5d 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;
};