[llvm-dev] Passing arguments to LLVM pass through Clang

Shishir V Jessu via llvm-dev llvm-dev at lists.llvm.org
Mon Mar 16 15:45:49 PDT 2020


I am adding to an LLVM pass that requires a filename as input. I am able to
input this filename as a command line argument when I invoke this pass
using opt, but I ultimately need to pass this argument to my code when I
compile code with clang.

How can I pass this argument to clang so that I can use it in my LLVM pass?
Thanks for your help!

Shishir Jessu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200316/558b1711/attachment.html>

More information about the llvm-dev mailing list