diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2016-07-21 13:37:48 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2016-07-21 13:37:48 +0000 |
| commit | eab3d367538030e2fd4feb0c94795e1bdb566451 (patch) | |
| tree | 1d60467595a41758a71cfbedd2689c9fcb900efa /llvm/lib/Transforms | |
| parent | 6eae9f2c670d8124faafa28b65eb1c95c554b64b (diff) | |
| download | bcm5719-llvm-eab3d367538030e2fd4feb0c94795e1bdb566451.tar.gz bcm5719-llvm-eab3d367538030e2fd4feb0c94795e1bdb566451.zip | |
Rename StringMap::emplace_second to try_emplace.
Coincidentally this function maps to the C++17 try_emplace. Rename it
for consistentcy with C++17 std::map. NFC.
llvm-svn: 276276
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp index 32beab78684..37f3cee7714 100644 --- a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp +++ b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp @@ -251,7 +251,7 @@ namespace { class GCOVBlock : public GCOVRecord { public: GCOVLines &getFile(StringRef Filename) { - return LinesByFile.emplace_second(Filename, Filename, os).first->second; + return LinesByFile.try_emplace(Filename, Filename, os).first->second; } void addEdge(GCOVBlock &Successor) { |

