[llvm-commits] CVS: llvm/include/llvm/Support/ManagedStatic.h
Chris Lattner
sabre at nondot.org
Sat Feb 10 11:54:40 PST 2007
Changes in directory llvm/include/llvm/Support:
ManagedStatic.h updated: 1.2 -> 1.3
---
Log message:
add helper method.
---
Diffs of the changes: (+3 -0)
ManagedStatic.h | 3 +++
1 files changed, 3 insertions(+)
Index: llvm/include/llvm/Support/ManagedStatic.h
diff -u llvm/include/llvm/Support/ManagedStatic.h:1.2 llvm/include/llvm/Support/ManagedStatic.h:1.3
--- llvm/include/llvm/Support/ManagedStatic.h:1.2 Tue Dec 5 19:01:14 2006
+++ llvm/include/llvm/Support/ManagedStatic.h Sat Feb 10 13:54:24 2007
@@ -34,6 +34,9 @@
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;
};
More information about the llvm-commits
mailing list