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:
parent
e5640dd8ad
commit
c8dcf4d72b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue