[all-commits] [llvm/llvm-project] 80b2e3: [lldb/Core] Remove more duplicate code in PluginMa...
Jonas Devlieghere via All-commits
all-commits at lists.llvm.org
Tue Feb 18 23:59:03 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 80b2e3cc531206c6e6f23dcc49b83b9ace641025
https://github.com/llvm/llvm-project/commit/80b2e3cc531206c6e6f23dcc49b83b9ace641025
Author: Jonas Devlieghere <jonas at devlieghere.com>
Date: 2020-02-18 (Tue, 18 Feb 2020)
Changed paths:
M lldb/source/Core/PluginManager.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list