aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-02-11 00:18:15 +0000
committerDan Gohman <gohman@apple.com>2009-02-11 00:18:15 +0000
commit88097eb58fb592f290cdca323be1745b458d3ccc (patch)
tree86a36b193fcda34c93e7afaa6968f18e0a57ee5d /include
parentae1a37b7b07e24036c8c0314999ba20a76ad1965 (diff)
downloadexternal_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.h9
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