summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/ModuleDebugInfo.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-07-21 13:37:53 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-07-21 13:37:53 +0000
commit857754a1cb73b3b71aef847ba8d7e983d4d77e2e (patch)
treea38891319c9da94e5940f9b8ac067246dac47789 /clang/test/Modules/ModuleDebugInfo.cpp
parenteab3d367538030e2fd4feb0c94795e1bdb566451 (diff)
downloadbcm5719-llvm-857754a1cb73b3b71aef847ba8d7e983d4d77e2e.tar.gz
bcm5719-llvm-857754a1cb73b3b71aef847ba8d7e983d4d77e2e.zip
[DenseMap] Add a C++17-style try_emplace method.
This provides an elegant pattern to solve the "construct if not in map already" problem we have many times in LLVM. Without try_emplace we either have to rely on a sentinel value (nullptr) or do two lookups. llvm-svn: 276277
Diffstat (limited to 'clang/test/Modules/ModuleDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud