diff options
author | Fangrui Song <i@maskray.me> | 2022-11-08 14:39:09 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-11-08 14:39:09 -0800 |
commit | 8c2c62282fca2f3dbfa338427aa97f702e67f86b (patch) | |
tree | fb6d4fbbec933cd0b8edd269096a83843315c69a /clang/lib/Frontend/TestModuleFileExtension.cpp | |
parent | 1a2bc103bba04e8fba574c70c6201ba18ccc08ba (diff) | |
download | llvm-8c2c62282fca2f3dbfa338427aa97f702e67f86b.zip llvm-8c2c62282fca2f3dbfa338427aa97f702e67f86b.tar.gz llvm-8c2c62282fca2f3dbfa338427aa97f702e67f86b.tar.bz2 |
[Driver] Refactor err_drv_unsupported_option_argument call sites to use llvm::opt::Arg::getSpelling
For `-foo=bar`, getSpelling return `-foo=` which is exactly what we need from
the diagnostic. Drop `-` from the err_drv_unsupported_option_argument template.
This change makes `--` long option diagnostics more convenient.
Reviewed By: lenary
Differential Revision: https://reviews.llvm.org/D137659
Diffstat (limited to 'clang/lib/Frontend/TestModuleFileExtension.cpp')
0 files changed, 0 insertions, 0 deletions