[clang] [clang-repl] Handle mllvm args for clang-repl before calling executeAction (PR #197133)

Vassil Vassilev via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 2 06:17:30 PDT 2026


vgvassilev wrote:

> Had to revert the latest commit for now !!
> 
> I totally missed that some direct `ExecuteAction()` clients, particularly `clang-scan-deps`, intentionally carry`-mllvm ` options without registering the corresponding backend flags. Moving the parsing into the common path caused those tools to reject otherwise valid options, so the narrower Clang-Repl-specific handling is safer !
> 
> See CI for errors. It shows
> 
> ```
> Unknown command line argument '-stackmap-version=2'
> Unknown command line argument '-x86-asm-syntax=intel'
> Unknown command line argument '-enable-memcpyopt-without-libcalls'
> ```

If we go that way I believe this changes don’t need to be reviewed by @AaronBallman anymore. Let’s give him a day or two and we can rely on post-merge review if necessary…

https://github.com/llvm/llvm-project/pull/197133


More information about the cfe-commits mailing list