mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 13:40:30 +00:00
IR: Move MDStrings to a BumpPtrAllocator
We never delete any MDString until the context is destroyed. Might as well throw them onto a BumpPtrAllocator. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265520 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e49dfa7e9a
commit
adb72b91cb
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user