[all-commits] [llvm/llvm-project] e6020b: [clang][NFC] refactor GlobalMethodPool to encapsul...
Richard Howell via All-commits
all-commits at lists.llvm.org
Thu Sep 16 14:12:10 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e6020b2a42245d888e941eba66fbce9d0c4ab0a8
https://github.com/llvm/llvm-project/commit/e6020b2a42245d888e941eba66fbce9d0c4ab0a8
Author: Richard Howell <rhow at fb.com>
Date: 2021-09-16 (Thu, 16 Sep 2021)
Changed paths:
M clang/include/clang/Sema/Sema.h
M clang/lib/Sema/SemaDeclObjC.cpp
M clang/lib/Serialization/ASTReader.cpp
Log Message:
-----------
[clang][NFC] refactor GlobalMethodPool to encapsulate its map
This refactor changes the GlobalMethodPool to a class that contains
the DenseMap of methods. This is to allow for the addition of a
separate DenseSet in a follow-up diff that will handle method
de-duplication when inserting methods into the global method pool.
Changes:
- the `GlobalMethods` pair becomes `GlobalMethodPool::Lists`
- the `GlobalMethodPool` becomes a class containing the `DenseMap` of methods
- pass through methods are added to maintain most of the existing code without changing `MethodPool` -> `MethodPool.Methods` everywhere
Reviewed By: dexonsmith
Differential Revision: https://reviews.llvm.org/D109898
More information about the All-commits
mailing list