diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-04-06 06:41:54 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-04-06 06:41:54 +0000 |
commit | 3e0430e0a81980e179f4efe79ea2e00d5f929317 (patch) | |
tree | 218c056a273f0686aea56cf921340225b5613bae /llvm/lib/IR/LLVMContextImpl.h | |
parent | bdfc984679b81e021634336f5f8f5dfca5b294a8 (diff) | |
download | bcm5719-llvm-3e0430e0a81980e179f4efe79ea2e00d5f929317.tar.gz bcm5719-llvm-3e0430e0a81980e179f4efe79ea2e00d5f929317.zip |
IR: Move MDStrings to a BumpPtrAllocator
We never delete any MDString until the context is destroyed. Might as
well throw them onto a BumpPtrAllocator.
llvm-svn: 265520
Diffstat (limited to 'llvm/lib/IR/LLVMContextImpl.h')
-rw-r--r-- | llvm/lib/IR/LLVMContextImpl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/LLVMContextImpl.h b/llvm/lib/IR/LLVMContextImpl.h index 56621e064d8..d82ec8dba55 100644 --- a/llvm/lib/IR/LLVMContextImpl.h +++ b/llvm/lib/IR/LLVMContextImpl.h @@ -931,7 +931,7 @@ public: FoldingSet<AttributeSetImpl> AttrsLists; FoldingSet<AttributeSetNode> AttrsSetNodes; - StringMap<MDString> MDStringCache; + StringMap<MDString, BumpPtrAllocator> MDStringCache; DenseMap<Value *, ValueAsMetadata *> ValuesAsMetadata; DenseMap<Metadata *, MetadataAsValue *> MetadataAsValues; |