[llvm-branch-commits] [clang] [Clang] Load pass plugins before parsing LLVM options (PR #171868)
Jan Svoboda via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Dec 15 08:23:06 PST 2025
================
@@ -474,8 +475,11 @@ class CodeGenOptions : public CodeGenOptionsBase {
std::vector<std::string> DefaultFunctionAttrs;
- /// List of dynamic shared object files to be loaded as pass plugins.
- std::vector<std::string> PassPlugins;
+ /// List of dynamic shared object file names to be loaded as pass plugins.
+ std::vector<std::string> PassPluginNames;
+
+ /// List of loaded pass plugins.
+ std::vector<llvm::PassPlugin *> PassPlugins;
----------------
jansvoboda11 wrote:
`CodeGenOptions` is supposed to be a value type. Please store this somewhere else (e.g. `CompilerInstance`).
https://github.com/llvm/llvm-project/pull/171868
More information about the llvm-branch-commits
mailing list