File tree 4 files changed +5
-5
lines changed 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ static StringRef getBasename(StringRef path) {
61
61
std::string lld::toString (const coff::InputFile *file) {
62
62
if (!file)
63
63
return " <internal>" ;
64
- if (file->parentName .empty () || file-> kind () == coff::InputFile::ImportKind )
64
+ if (file->parentName .empty ())
65
65
return std::string (file->getName ());
66
66
67
67
return (getBasename (file->parentName ) + " (" + getBasename (file->getName ()) +
Original file line number Diff line number Diff line change 8
8
# RUN: /alternatename:__delayLoadHelper2=main /opt:noref >& %t.log
9
9
# RUN: FileCheck %s < %t.log
10
10
11
- # CHECK: cannot delay-load foo.dll due to import of data: __declspec(dllimport) datasym
11
+ # CHECK: cannot delay-load foo.lib(foo. dll) due to import of data: __declspec(dllimport) datasym
12
12
13
13
--- !COFF
14
14
header:
Original file line number Diff line number Diff line change @@ -13,5 +13,5 @@ RUN: not lld-link /out:gamma.exe /subsystem:console /entry:mainCRTStartup gamma.
13
13
14
14
CHECK-GAMMA: error: duplicate symbol: __declspec(dllimport) f
15
15
CHECK-GAMMA: defined at {{.*}}gamma.obj
16
- CHECK-GAMMA: defined at alpha.dll
16
+ CHECK-GAMMA: defined at alpha.lib(alpha. dll)
17
17
Original file line number Diff line number Diff line change 6
6
# RUN: llvm-mc -triple x86_64-windows-msvc %t.dir/test.s -filetype=obj -o %t.dir/test64.obj
7
7
8
8
# RUN: not lld-link -dll -noentry -out:%t32.dll %t.dir/test32.obj %t.dir/test64.lib 2>&1 | FileCheck --check-prefix=ERR32 %s
9
- # ERR32: error: test.dll: machine type x64 conflicts with x86
9
+ # ERR32: error: test64.lib( test.dll) : machine type x64 conflicts with x86
10
10
11
11
# RUN: not lld-link -dll -noentry -out:%t64.dll %t.dir/test64.obj %t.dir/test32.lib 2>&1 | FileCheck --check-prefix=ERR64 %s
12
- # ERR64: error: test.dll: machine type x86 conflicts with x64
12
+ # ERR64: error: test32.lib( test.dll) : machine type x86 conflicts with x64
13
13
14
14
#--- test.s
15
15
.def @feat.00 ;
You can’t perform that action at this time.
0 commit comments