summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lldbplatformutil.py
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-03-07 00:51:00 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-03-07 00:51:00 +0000
commitb923d641d03de1304171af08043ba3148787abf0 (patch)
tree97ebc2cf6fe885e15125a0ed060a3fe4b5f0036b /lldb/packages/Python/lldbsuite/test/lldbplatformutil.py
parent67dfe09da49293b208fffe44bf7b26640bb171a6 (diff)
downloadbcm5719-llvm-b923d641d03de1304171af08043ba3148787abf0.tar.gz
bcm5719-llvm-b923d641d03de1304171af08043ba3148787abf0.zip
Add a new insert_as() method to DenseMap and use it for ConstantUniqueMap
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. This is a reapply of r260458, that was reverted because it was suspected to be the cause of instability of an internal bot, but wasn't confirmed. Differential Revision: http://reviews.llvm.org/D16268 From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 262812
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbplatformutil.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud