Dear All,
I'm trying to add a command line option to Clang/Clang++ that will tell it to run some additional LLVM passes that I've written. From what I've read from the source code, it looks like I have to add an option to both clang (the frontend driver) and CC1 (the actual compiler that performs optimization on the LLVM IR) and somehow get the frontend driver to propagate the command-line option to CC1.
Is my above conclusion correct, and if so, how do I most easily propagate the command-line option from the front end to the cc1 compiler?
Thanks in advance,
-- John T.