link a opt pass to clang

Hi folk,

I used to use llvm-gcc front end and now switch to clang. I have a pass that is statically linked to opt, and it is automatically linked to gcc, but clang -cc1 -mllvm --help does not show my pass.

How can I link my pass to clang?
Thanks,
Neal

Well, it’s not automatically linked. I need to add my pass to llvm-gcc-4.2-2.8.source/gcc/Makefile.in. Where should I specify my pass such that it’s linked to clang?

Thanks,
Neal,