Since OPT_UNKNOWN args never have any values and consist only of spelling (and are never aliased), this doesn't make any difference in practice, but it's more consistent with Arg's guidance to use getAsString() for diagnostics, and it matches what clang does. Also tweak two tests to use an unknown option that contains '=' for additional coverage while here. (The new tests pass fine with the old code too though.) llvm-svn: 365200
18 lines
626 B
ArmAsm
18 lines
626 B
ArmAsm
# REQUIRES: x86
|
|
|
|
# RUN: llvm-mc -triple=x86_64-windows-msvc -filetype=obj -o %t.obj %s
|
|
# RUN: not lld-link /out:%t.exe /entry:main -notarealopt=ion /WX %t.obj 2>&1 | \
|
|
# RUN: FileCheck -check-prefix=ERROR %s
|
|
# RUN: not lld-link /out:%t.exe /entry:main -notarealopt=ion /WX:NO /WX %t.obj 2>&1 | \
|
|
# RUN: FileCheck -check-prefix=ERROR %s
|
|
# RUN: lld-link /out:%t.exe /entry:main -notarealopt=ion /WX /WX:NO %t.obj 2>&1 | \
|
|
# RUN: FileCheck -check-prefix=WARNING %s
|
|
|
|
# ERROR: error: ignoring unknown argument '-notarealopt=ion'
|
|
# WARNING: warning: ignoring unknown argument '-notarealopt=ion'
|
|
|
|
.text
|
|
.global main
|
|
main:
|
|
ret
|