mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Driver][Frontend] Introduce load-pass-plugin option
Allow dynamic loading of LLVM passes via `load-pass-plugin` option passed to the Swift compiler driver.
This commit is contained in:
@@ -3183,6 +3183,10 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
|
||||
}
|
||||
}
|
||||
|
||||
for (const Arg *A : Args.filtered(OPT_load_pass_plugin_EQ)) {
|
||||
Opts.LLVMPassPlugins.push_back(A->getValue());
|
||||
}
|
||||
|
||||
for (const Arg *A : Args.filtered(OPT_verify_type_layout)) {
|
||||
Opts.VerifyTypeLayoutNames.push_back(A->getValue());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user