[llvm] r265576 - IR: Stop explicitly clearing the MDStringCache
Duncan P. N. Exon Smith via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 6 10:56:05 PDT 2016
Author: dexonsmith
Date: Wed Apr 6 12:56:05 2016
New Revision: 265576
URL: http://llvm.org/viewvc/llvm-project?rev=265576&view=rev
Log:
IR: Stop explicitly clearing the MDStringCache
The MDStringCache doesn't need to be explicitly cleared before
destruction. The destructor handles it at least as efficiently.
Modified:
llvm/trunk/lib/IR/LLVMContextImpl.cpp
Modified: llvm/trunk/lib/IR/LLVMContextImpl.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/LLVMContextImpl.cpp?rev=265576&r1=265575&r2=265576&view=diff
==============================================================================
--- llvm/trunk/lib/IR/LLVMContextImpl.cpp (original)
+++ llvm/trunk/lib/IR/LLVMContextImpl.cpp Wed Apr 6 12:56:05 2016
@@ -158,9 +158,6 @@ LLVMContextImpl::~LLVMContextImpl() {
// Destroy ValuesAsMetadata.
for (auto &Pair : ValuesAsMetadata)
delete Pair.second;
-
- // Destroy MDStrings.
- MDStringCache.clear();
}
void LLVMContextImpl::dropTriviallyDeadConstantArrays() {
More information about the llvm-commits
mailing list