It isn't necessary to explicitly clear the contents of std::vector

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
This commit is contained in:
Dan Gohman 2009-02-11 00:18:15 +00:00
parent 6919757921
commit 18e9a6b3af

View 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