[LLVMdev] How To Pass An Command Line Option To The Pass
Tobias von Koch
tobias.von.koch at gmail.com
Tue Feb 21 02:44:12 PST 2012
You can use the cl::opt<> template to declare your options inside your LLVM
pass. When calling clang, you can then pass options using -mllvm (e.g.
clang -mllvm -my-option=1).
On Tue, Feb 21, 2012 at 09:41, Sevak Sargsyan <sevaksargsyan777 at gmail.com>wrote:
> Hi all,
> I have a problem with passing multiple option(-flag=aaa/bbb) from clang to
> I don't know how to parse it, should I parse it in clang and pass it
> to llvm or should I parse it in llvm pass where I use it,
> could you help me.
> Thanks in advance,
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev