aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/LLVMContextImpl.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-04-06 17:56:05 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-04-06 17:56:05 +0000
commitf3d08ef59af271ee8fae2f37708cfb67c821442a (patch)
treeb83a471262934e2e007e09172e24e4d8540525c4 /llvm/lib/IR/LLVMContextImpl.cpp
parent0a04b03ab2f58d87e296870718c9ecfd59c54e95 (diff)
downloadllvm-f3d08ef59af271ee8fae2f37708cfb67c821442a.zip
llvm-f3d08ef59af271ee8fae2f37708cfb67c821442a.tar.gz
llvm-f3d08ef59af271ee8fae2f37708cfb67c821442a.tar.bz2
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. llvm-svn: 265576
Diffstat (limited to 'llvm/lib/IR/LLVMContextImpl.cpp')
-rw-r--r--llvm/lib/IR/LLVMContextImpl.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/IR/LLVMContextImpl.cpp b/llvm/lib/IR/LLVMContextImpl.cpp
index 5239b4f..9fe1893 100644
--- a/llvm/lib/IR/LLVMContextImpl.cpp
+++ b/llvm/lib/IR/LLVMContextImpl.cpp
@@ -158,9 +158,6 @@ LLVMContextImpl::~LLVMContextImpl() {
// Destroy ValuesAsMetadata.
for (auto &Pair : ValuesAsMetadata)
delete Pair.second;
-
- // Destroy MDStrings.
- MDStringCache.clear();
}
void LLVMContextImpl::dropTriviallyDeadConstantArrays() {