link a opt pass to clang

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

link a opt pass to clang

Neal  N. Wang
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
_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: link a opt pass to clang

Neal  N. Wang
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,

On Wed, Jan 5, 2011 at 10:32 PM, Neal N. Wang <[hidden email]> wrote:
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


_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev