diff options
author | Joseph Huber <huberjn@outlook.com> | 2025-02-06 16:36:08 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-06 16:36:08 -0600 |
commit | fe58eee60200c91b5b4131e9dc73a5e870b3cf4d (patch) | |
tree | 38927f77566e29a9ca3b15495803d1525baaeb0b /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 6e2f08b2f86aa6a2d1cb3cb3e88f0813877a3ced (diff) | |
download | llvm-fe58eee60200c91b5b4131e9dc73a5e870b3cf4d.zip llvm-fe58eee60200c91b5b4131e9dc73a5e870b3cf4d.tar.gz llvm-fe58eee60200c91b5b4131e9dc73a5e870b3cf4d.tar.bz2 |
[Clang] Only allow `clang` arguments to `-Xarch` (#126101)
Summary:
Currently the `-Xarch` argument needs to re-parse the option, which goes
through every single registered argument. This causes errors when trying
to pass `-O1` through it because it thinks it's a DXC option. This patch
changes the behavior to only allow `clang` options. Concievably we could
detect the driver mode to make this more robust, but I don't know if
there are other users for this.
Fixes: https://github.com/llvm/llvm-project/issues/110325
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions