aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-04-19 16:57:24 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-04-19 16:57:24 +0000
commita4810fac198c496d8e16c99da0fe57b89be8598e (patch)
treeaa1f2f025f2d9403e8732dafc1845b529fb25134 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parenta1202bf5944ad4a28d1e391a0a2da175bd9b27d0 (diff)
downloadllvm-a4810fac198c496d8e16c99da0fe57b89be8598e.zip
llvm-a4810fac198c496d8e16c99da0fe57b89be8598e.tar.gz
llvm-a4810fac198c496d8e16c99da0fe57b89be8598e.tar.bz2
Linker: Avoid constructing ValueMap::MDMapT
Calling ValueMap::MD lazily constructs a ValueMap, which mallocs the buckets. Instead of swapping constructed maps, move around the underlying Optional<MDMapT>. This gets rid of some unnecessary malloc traffic from r266579 (not that it showed up on a profile). llvm-svn: 266761
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions