IR: Rewrite uniquing and creation of MDString
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 14 Nov 2014 01:17:09 +0000 (01:17 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 14 Nov 2014 01:17:09 +0000 (01:17 +0000)
commited7bdcaf03fbb0a548bc8c13d035417a65155b54
tree9198639240e42e51f2805f0292f87dce2d07443c
parent7987683c3912056b4c54bbb8c7b38665f1049798
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221960 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Metadata.h
lib/IR/LLVMContextImpl.cpp
lib/IR/LLVMContextImpl.h
lib/IR/Metadata.cpp