From: Dan Gohman Date: Wed, 11 Feb 2009 00:18:15 +0000 (+0000) Subject: It isn't necessary to explicitly clear the contents of std::vector X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=18e9a6b3af36ced22cb430b427d4c0ea9f3b8f81;p=oota-llvm.git 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 --- 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