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

and DenseMap members in a destructor. And tidy up a comment.

llvm-svn: 64265
This commit is contained in:
Dan Gohman 2009-02-11 00:18:15 +00:00
parent e5640dd8ad
commit c8dcf4d72b
1 changed files with 2 additions and 7 deletions

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