From 18e9a6b3af36ced22cb430b427d4c0ea9f3b8f81 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 11 Feb 2009 00:18:15 +0000 Subject: [PATCH] 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 --- include/llvm/CodeGen/DebugLoc.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/include/llvm/CodeGen/DebugLoc.h b/include/llvm/CodeGen/DebugLoc.h index aa6d8252cfb..77e8ca505cf 100644 --- a/include/llvm/CodeGen/DebugLoc.h +++ b/include/llvm/CodeGen/DebugLoc.h @@ -82,16 +82,11 @@ namespace llvm { /// std::vector DebugLocations; - /// DebugIdsMap - This maps DebugLocTuple's to indices into DebugLocations - /// vector. + /// DebugIdMap - This maps DebugLocTuple's to indices into the + /// DebugLocations vector. DenseMap DebugIdMap; DebugLocTracker() {} - - ~DebugLocTracker() { - DebugLocations.clear(); - DebugIdMap.clear(); - } }; } // end namespace llvm -- 2.34.1