diff options
author | Kazu Hirata <kazu@google.com> | 2024-09-20 13:14:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-20 13:14:27 -0700 |
commit | 533c7ff2db6e7f78e34fc0cc1f6390645337d964 (patch) | |
tree | 74cdd1d701230b81c39db836a8840bdba31c8e08 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 6af5f87d8d5889888ac27b768652efafb5bb9e40 (diff) | |
download | llvm-533c7ff2db6e7f78e34fc0cc1f6390645337d964.zip llvm-533c7ff2db6e7f78e34fc0cc1f6390645337d964.tar.gz llvm-533c7ff2db6e7f78e34fc0cc1f6390645337d964.tar.bz2 |
[Sema] Declare GlobalMethodPool with using (NFC) (#109437)
GlobalMethodPool is a wrapper around DenseMap that does not add
anything except:
using Lists = std::pair<ObjCMethodList, ObjCMethodList>;
This patch removes the wrapper and switches to an alias with "using".
In ReadMethodPool in ASTReader.cpp, we can simplify:
insert(std::make_pair(Sel, SemaObjC::GlobalMethodPool::Lists()))
to:
try_emplace(Sel)
But then try_emplace(Sel).first->second is the same as operator[], so
this patch simplifies the rest of the function.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions