[LLVMdev] Passing arguments to opt via clang

Duncan Sands baldrick at free.fr
Thu Jun 27 13:23:01 PDT 2013


On 27/06/13 13:38, khalil_sb wrote:
> what is the solution to pass opt arguments , non ordinary  passes like :
> *-std-link-opts* by clang ?
> Dose clang invoke opt in normal compilation procedure even?

No, clang doesn't invoke opt.  Instead both clang and opt use the same LLVM
infrastructure to schedule passes (opt is basically a thin wrapper around
this core functionality).

Ciao, Duncan.



More information about the llvm-dev mailing list