[llvm-commits] [llvm] r64265 - /llvm/trunk/include/llvm/CodeGen/DebugLoc.h
Dan Gohman
gohman at apple.com
Tue Feb 10 16:18:16 PST 2009
Author: djg
Date: Tue Feb 10 18:18:15 2009
New Revision: 64265
URL: http://llvm.org/viewvc/llvm-project?rev=64265&view=rev
Log:
It isn't necessary to explicitly clear the contents of std::vector
and DenseMap members in a destructor. And tidy up a comment.
Modified:
llvm/trunk/include/llvm/CodeGen/DebugLoc.h
Modified: llvm/trunk/include/llvm/CodeGen/DebugLoc.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/DebugLoc.h?rev=64265&r1=64264&r2=64265&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/DebugLoc.h (original)
+++ llvm/trunk/include/llvm/CodeGen/DebugLoc.h Tue Feb 10 18:18:15 2009
@@ -82,16 +82,11 @@
///
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
More information about the llvm-commits
mailing list