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 | 88097eb58fb592f290cdca323be1745b458d3ccc (patch) | |
tree | 86a36b193fcda34c93e7afaa6968f18e0a57ee5d /include | |
parent | ae1a37b7b07e24036c8c0314999ba20a76ad1965 (diff) | |
download | external_llvm-88097eb58fb592f290cdca323be1745b458d3ccc.zip external_llvm-88097eb58fb592f290cdca323be1745b458d3ccc.tar.gz external_llvm-88097eb58fb592f290cdca323be1745b458d3ccc.tar.bz2 |
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
Diffstat (limited to 'include')
-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 aa6d825..77e8ca5 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 |