summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/expression_command/anonymous-struct/main.cpp
diff options
context:
space:
mode:
authorKrasimir Georgiev <krasimir@google.com>2018-10-25 13:38:07 +0000
committerKrasimir Georgiev <krasimir@google.com>2018-10-25 13:38:07 +0000
commit142919bc23f1abf986fc061947f45120af63396d (patch)
tree424bea338852f757d1485ea4487bb2bec4e3d787 /lldb/packages/Python/lldbsuite/test/expression_command/anonymous-struct/main.cpp
parent53e8e145e9f3908e31f89de347819ec17a1160ea (diff)
downloadbcm5719-llvm-142919bc23f1abf986fc061947f45120af63396d.tar.gz
bcm5719-llvm-142919bc23f1abf986fc061947f45120af63396d.zip
IR: Optimize StructType::get to perform one hash lookup instead of two, NFCI
Summary: This function was performing two hash lookups when a new struct type was requested: first checking if it exists and second to insert it. This patch updates the function to perform a single hash lookup in this case by updating the value in the hash table in-place in case the struct type was not there before. Similar to r345151. Reviewers: bkramer Reviewed By: bkramer Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D53689 llvm-svn: 345264
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/anonymous-struct/main.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud