Delete the CollectorNamePool if it should become empty.
[oota-llvm.git] / include / llvm / Support / StringPool.h
index 7ac2b147c34dc7eb54c0ff355f1166cb676a3ce5..46087e4d1febaa15c2eb8707013b7549a4b43199 100644 (file)
@@ -70,6 +70,10 @@ namespace llvm {
     /// reference-counted pointer to it. No additional memory is allocated if
     /// the string already exists in the pool.
     inline PooledStringPtr intern(const char *Str);
+    
+    /// empty - Checks whether the pool is empty. Returns true if so.
+    /// 
+    inline bool empty() const { return InternTable.empty(); }
   };
   
   /// PooledStringPtr - A pointer to an interned string. Use operator bool to