mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-25 15:41:05 +00: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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265576 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b5dd9acfff
commit
9148a0a560
@ -158,9 +158,6 @@ LLVMContextImpl::~LLVMContextImpl() {
|
||||
// Destroy ValuesAsMetadata.
|
||||
for (auto &Pair : ValuesAsMetadata)
|
||||
delete Pair.second;
|
||||
|
||||
// Destroy MDStrings.
|
||||
MDStringCache.clear();
|
||||
}
|
||||
|
||||
void LLVMContextImpl::dropTriviallyDeadConstantArrays() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user