[clang] [llvm] [clang] Add -fpass-plugin-arg=<plugin>, <arg> (PR #244917)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 23 19:10:37 PST 2026


================
@@ -567,6 +567,9 @@ class CodeGenOptions : public CodeGenOptionsBase {
   /// List of dynamic shared object files to be loaded as pass plugins.
   std::vector<std::string> PassPlugins;
 
+  /// "<plugin>,<arg>" values of -fpass-plugin-arg=.
+  std::vector<std::string> PassPluginArgs;
----------------
MaskRay wrote:

This is ok. `clang::passPluginArguments` calls `llvm::passPluginArguments`, which forwards arguments to the relevant plugins.

https://github.com/llvm/llvm-project/pull/244917


More information about the cfe-commits mailing list