aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-04-02 17:04:38 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-04-02 17:04:38 +0000
commitda4a56d1abf0aa34dcb721c4b2d704a7715c23c1 (patch)
tree6ec3d98e992043a6f8f2d91b7869e11082fc68d0 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parentddbb1cd45a51d24642788599d2e3aafaed9bba0f (diff)
downloadllvm-da4a56d1abf0aa34dcb721c4b2d704a7715c23c1.zip
llvm-da4a56d1abf0aa34dcb721c4b2d704a7715c23c1.tar.gz
llvm-da4a56d1abf0aa34dcb721c4b2d704a7715c23c1.tar.bz2
ValueMapper: Add support for seeding metadata with nullptr
Support seeding a ValueMap with nullptr for Metadata entries, a situation I didn't consider in the Metadata/Value split. I added a ValueMapper::getMappedMD accessor that returns an Optional<Metadata*> with the mapped (possibly null) metadata. IRMover needs to use this to avoid modifying the map when it's checking for unneeded subprograms. I updated a call from bugpoint since I find the new code clearer. llvm-svn: 265228
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions