It isn't necessary to explicitly clear the contents of std::vector
authorDan Gohman <gohman@apple.com>
Wed, 11 Feb 2009 00:18:15 +0000 (00:18 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 11 Feb 2009 00:18:15 +0000 (00:18 +0000)
and DenseMap members in a destructor. And tidy up a comment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64265 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/DebugLoc.h

index aa6d8252cfb13770d4dca8da32d0822ddc386a6c..77e8ca505cf3640c03035612b62eb65dd372c49f 100644 (file)
@@ -82,16 +82,11 @@ namespace llvm {
     ///
     std::vector<DebugLocTuple> DebugLocations;
 
-    /// DebugIdsMap - This maps DebugLocTuple's to indices into DebugLocations
-    /// vector.
+    /// DebugIdMap - This maps DebugLocTuple's to indices into the
+    /// DebugLocations vector.
     DenseMap<DebugLocTuple, unsigned> DebugIdMap;
 
     DebugLocTracker() {}
-
-    ~DebugLocTracker() {
-      DebugLocations.clear();
-      DebugIdMap.clear();
-    }
   };
   
 } // end namespace llvm