Page MenuHomePhabricator

[Driver] Forward pass plugin arguments to gold
Needs ReviewPublic

Authored by ddcc on Apr 7 2020, 9:29 PM.



Support forwarding -fplugin and -fpass-plugin arguments for loading pass plugins

Depends on: D77704

Diff Detail

Event Timeline

ddcc created this revision.Apr 7 2020, 9:29 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 7 2020, 9:29 PM
ddcc added a comment.Apr 8 2020, 11:19 PM

Originally, I tried forwarding the -Xclang -load arguments, but couldn't access the options::OPT_plugin arguments from the argument list. I'm not familiar with tablegen and argument processing, there was some issue with the group not being available causing the arguments to be skipped when filtering the argument list, so I ended up reusing the OPT_fplugin and OPT_fpass_plugin arguments instead. As far as I can tell, OPT_fplugin seems to work for both Clang and LLVM plugins, but I haven't used the former.