diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-04-19 16:57:24 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-04-19 16:57:24 +0000 |
commit | a4810fac198c496d8e16c99da0fe57b89be8598e (patch) | |
tree | aa1f2f025f2d9403e8732dafc1845b529fb25134 /clang | |
parent | a1202bf5944ad4a28d1e391a0a2da175bd9b27d0 (diff) | |
download | bcm5719-llvm-a4810fac198c496d8e16c99da0fe57b89be8598e.tar.gz bcm5719-llvm-a4810fac198c496d8e16c99da0fe57b89be8598e.zip |
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 'clang')
0 files changed, 0 insertions, 0 deletions