diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-11-14 01:17:09 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-11-14 01:17:09 +0000 |
commit | f17e740157d17effc513037fd4f86c02deb913f7 (patch) | |
tree | d5482733d1f6826ab402eaee7f87b0122f7efe30 /llvm/lib/IR/LLVMContextImpl.cpp | |
parent | 59f34bbb76640673cac808b6c92cbc876aa3be52 (diff) | |
download | bcm5719-llvm-f17e740157d17effc513037fd4f86c02deb913f7.tar.gz bcm5719-llvm-f17e740157d17effc513037fd4f86c02deb913f7.zip |
IR: Rewrite uniquing and creation of MDString
Stop using `Value::getName()` to get the string behind an `MDString`.
Switch to `StringMapEntry<MDString>` so that we can find the string by
its coallocation.
This is part of PR21532.
llvm-svn: 221960
Diffstat (limited to 'llvm/lib/IR/LLVMContextImpl.cpp')
-rw-r--r-- | llvm/lib/IR/LLVMContextImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/LLVMContextImpl.cpp b/llvm/lib/IR/LLVMContextImpl.cpp index 09bf6b123a9..df3449d12c8 100644 --- a/llvm/lib/IR/LLVMContextImpl.cpp +++ b/llvm/lib/IR/LLVMContextImpl.cpp @@ -135,7 +135,7 @@ LLVMContextImpl::~LLVMContextImpl() { "Destroying all MDNodes didn't empty the Context's sets."); // Destroy MDStrings. - DeleteContainerSeconds(MDStringCache); + MDStringCache.clear(); } // ConstantsContext anchors |