summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-10 19:54:24 +0000
committerChris Lattner <sabre@nondot.org>2007-02-10 19:54:24 +0000
commit2230c96657dac09702bfd31931902da8e514687b (patch)
treea4a4718d82fc71386d094d3030bc64631ac06bda /llvm
parent1e692e823c549f1b2a25361a12e546ab5a391798 (diff)
downloadbcm5719-llvm-2230c96657dac09702bfd31931902da8e514687b.tar.gz
bcm5719-llvm-2230c96657dac09702bfd31931902da8e514687b.zip
add helper method.
llvm-svn: 34155
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Support/ManagedStatic.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/ManagedStatic.h b/llvm/include/llvm/Support/ManagedStatic.h
index e1585bafa80..a9e7e96b5d7 100644
--- a/llvm/include/llvm/Support/ManagedStatic.h
+++ b/llvm/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;
};
OpenPOWER on IntegriCloud