[PATCH] D135108: [llvm-driver] Fix clang -fno-integrated-cc1 when invoked from the llvm driver
Alex Brachet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 24 10:50:47 PDT 2022
abrachet marked an inline comment as done.
abrachet added inline comments.
================
Comment at: clang/lib/Driver/ToolChains/Clang.cpp:5005
+ const char *PrependArg =
+ D.getOutOfProcessIsLLVMDriver() ? "clang" : nullptr;
C.addCommand(std::make_unique<Command>(
----------------
phosek wrote:
> Instead of storing a boolean and then duplicating this check and hardcoding the name `"clang"` in multiple places, we could store the name in the `Driver` (for example as `DriverName`) and default it to `null`. It'd be a responsibility of `cc1gen_reproducer_main.cpp` and `driver.cpp` to set it.
Sure
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135108/new/
https://reviews.llvm.org/D135108
More information about the llvm-commits
mailing list