-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LLD][COFF] Print object file name for unsupported directives
This is a small QoL improvement suggested by FrancescElies in #56300 (comment). Differential Revision: https://reviews.llvm.org/D149022
- Loading branch information
1 parent
271a73d
commit 9b15e98
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# REQUIRES: x86 | ||
|
||
# RUN: llvm-mc -triple=x86_64-windows %s -filetype=obj -o %t.obj | ||
|
||
# RUN: not lld-link -dll -out:%t.dll -entry:entry %t.obj -subsystem:console 2>&1 | FileCheck %s | ||
|
||
# CHECK: warning: ignoring unknown argument: -unknowndirectivename | ||
# CHECK: error: -unknowndirectivename is not allowed in .drectve ({{.*}}.obj) | ||
|
||
.global entry | ||
.text | ||
entry: | ||
ret | ||
.section .drectve | ||
.ascii " -unknowndirectivename " |