1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

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
This commit is contained in:
Duncan P. N. Exon Smith 2016-04-06 17:56:05 +00:00
parent 3acc199dde
commit 9e9184dbd1

View File

@ -158,9 +158,6 @@ LLVMContextImpl::~LLVMContextImpl() {
// Destroy ValuesAsMetadata. // Destroy ValuesAsMetadata.
for (auto &Pair : ValuesAsMetadata) for (auto &Pair : ValuesAsMetadata)
delete Pair.second; delete Pair.second;
// Destroy MDStrings.
MDStringCache.clear();
} }
void LLVMContextImpl::dropTriviallyDeadConstantArrays() { void LLVMContextImpl::dropTriviallyDeadConstantArrays() {