summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-nm/llvm-nm.cpp
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-02-10 23:07:29 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-02-10 23:07:29 +0000
commit2476e0027e9b6bc3fe85c3438b864aa7da17b70d (patch)
tree84917662997e148b48b1eaceb64976effa7271db /llvm/tools/llvm-nm/llvm-nm.cpp
parent222e6c52120a6282eea89341ef833c2b18e52c47 (diff)
downloadbcm5719-llvm-2476e0027e9b6bc3fe85c3438b864aa7da17b70d.tar.gz
bcm5719-llvm-2476e0027e9b6bc3fe85c3438b864aa7da17b70d.zip
Add a new insert_as() method to DenseMap and use it for ConstantUniqueMap
Summary: Just like the existing find_as() method, the new insert_as() accepts an extra parameter which is used as a key to find the bucket in the map. When creating a Constant, we want to check the map before actually creating the object. In this case we have to perform two queries to the map, and this extra parameter can save recomputing the hash value for the second query. Reviewers: dexonsmith, chandlerc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D16268 From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 260458
Diffstat (limited to 'llvm/tools/llvm-nm/llvm-nm.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud