diff options
author | Dan Gohman <gohman@apple.com> | 2009-02-11 00:18:15 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-02-11 00:18:15 +0000 |
commit | 18e9a6b3af36ced22cb430b427d4c0ea9f3b8f81 (patch) | |
tree | 86a36b193fcda34c93e7afaa6968f18e0a57ee5d | |
parent | 69197579210155d31941fe399d8ffc746ad2de69 (diff) |
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
-rw-r--r-- | include/llvm/CodeGen/DebugLoc.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/include/llvm/CodeGen/DebugLoc.h b/include/llvm/CodeGen/DebugLoc.h index aa6d8252cf..77e8ca505c 100644 --- a/include/llvm/CodeGen/DebugLoc.h +++ b/include/llvm/CodeGen/DebugLoc.h @@ -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 |