[lldb/Core] Remove more duplicate code in PluginManager (NFCI)

The PluginManager contains a lot of duplicate code. I already removed a
bunch of it by introducing the templated PluginInstance class, and this
is the next step. The PluginInstances class combines the mutex and the
vector and implements the common operations.

To accommodate plugin instances with additional members it is possible
to access the underlying vector and mutex. The methods to query these
fields make use of that.

Differential revision: https://reviews.llvm.org/D74816
This commit is contained in:
Jonas Devlieghere 2020-02-18 23:52:07 -08:00
parent 2a095ff6f5
commit 80b2e3cc53
1 changed files with 359 additions and 1054 deletions

File diff suppressed because it is too large Load Diff