Is there a way to run the clang and add llc flags ? I want to use "-print-after-all", "-print-before-all", "-debug-only" ... without having to use the .bc file in between.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Additional arguments can be passed to LLVM's option parser with -mllvm
. For your scenario this would look something like this:
clang [...] -mllvm -print-after-all