Skip to content

Commit 55ad294

Browse files
committed
[lld,test] Convert text files from CRLF to LF
1 parent 528f5ba commit 55ad294

File tree

4 files changed

+116
-116
lines changed

4 files changed

+116
-116
lines changed
Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
1-
#include "windows.h"
2-
3-
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
4-
5-
myaccelerators ACCELERATORS
6-
{
7-
"^C", 999, VIRTKEY, ALT
8-
"D", 1100, VIRTKEY, CONTROL, SHIFT
9-
"^R", 444, ASCII, NOINVERT
10-
}
11-
12-
cursor BITMAP "combined-resources-cursor.bmp"
13-
okay BITMAP "combined-resources-okay.bmp"
14-
15-
14432 MENU
16-
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
17-
{
18-
MENUITEM "yu", 100
19-
MENUITEM "shala", 101
20-
MENUITEM "kaoya", 102
21-
}
22-
23-
testdialog DIALOG 10, 10, 200, 300
24-
STYLE WS_POPUP | WS_BORDER
25-
CAPTION "Test"
26-
{
27-
CTEXT "Continue:", 1, 10, 10, 230, 14
28-
PUSHBUTTON "&OK", 2, 66, 134, 161, 13
29-
}
30-
31-
12 ACCELERATORS
32-
{
33-
"X", 164, VIRTKEY, ALT
34-
"H", 5678, VIRTKEY, CONTROL, SHIFT
35-
"^R", 444, ASCII, NOINVERT
36-
}
37-
38-
"eat" MENU
39-
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_AUS
40-
{
41-
MENUITEM "fish", 100
42-
MENUITEM "salad", 101
43-
MENUITEM "duck", 102
44-
}
45-
46-
47-
myresource stringarray {
48-
"this is a user defined resource\0",
49-
"it contains many strings\0",
50-
}
1+
#include "windows.h"
2+
3+
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
4+
5+
myaccelerators ACCELERATORS
6+
{
7+
"^C", 999, VIRTKEY, ALT
8+
"D", 1100, VIRTKEY, CONTROL, SHIFT
9+
"^R", 444, ASCII, NOINVERT
10+
}
11+
12+
cursor BITMAP "combined-resources-cursor.bmp"
13+
okay BITMAP "combined-resources-okay.bmp"
14+
15+
14432 MENU
16+
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
17+
{
18+
MENUITEM "yu", 100
19+
MENUITEM "shala", 101
20+
MENUITEM "kaoya", 102
21+
}
22+
23+
testdialog DIALOG 10, 10, 200, 300
24+
STYLE WS_POPUP | WS_BORDER
25+
CAPTION "Test"
26+
{
27+
CTEXT "Continue:", 1, 10, 10, 230, 14
28+
PUSHBUTTON "&OK", 2, 66, 134, 161, 13
29+
}
30+
31+
12 ACCELERATORS
32+
{
33+
"X", 164, VIRTKEY, ALT
34+
"H", 5678, VIRTKEY, CONTROL, SHIFT
35+
"^R", 444, ASCII, NOINVERT
36+
}
37+
38+
"eat" MENU
39+
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_AUS
40+
{
41+
MENUITEM "fish", 100
42+
MENUITEM "salad", 101
43+
MENUITEM "duck", 102
44+
}
45+
46+
47+
myresource stringarray {
48+
"this is a user defined resource\0",
49+
"it contains many strings\0",
50+
}

lld/test/COFF/pdb-type-server-invalid-signature.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
# RUN: cp %S/Inputs/pdb-diff-cl.pdb %T
2424
# RUN: lld-link %t3.obj -out:%t3.exe -debug -pdb:%t3.pdb -nodefaultlib -entry:main 2>&1 | FileCheck -DMSG=%errc_ENOENT %s -check-prefix=INVALID-PATH -allow-empty
2525

26-
# INVALID-PATH-NOT: warning: Cannot use debug info for '{{.*}}3.obj' [LNK4099]
27-
# INVALID-PATH-NOT: failed to load reference 'c:\some_invalid_path_AABB98765\pdb-diff-cl.pdb': [[MSG]]
26+
# INVALID-PATH-NOT: warning: Cannot use debug info for '{{.*}}3.obj' [LNK4099]
27+
# INVALID-PATH-NOT: failed to load reference 'c:\some_invalid_path_AABB98765\pdb-diff-cl.pdb': [[MSG]]
2828

2929
--- !COFF
3030
header:

lld/test/COFF/pdb_char8_t.ll

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
1-
; REQUIRES: x86
2-
; RUN: llc -mtriple x86_64-windows-msvc -filetype obj -o %t.obj %s
3-
; RUN: lld-link /nodefaultlib /noentry /dll /debug /out:%t.exe /pdb:%t.pdb %t.obj
4-
; RUN: llvm-pdbutil dump -type-index=0x7c %t.pdb
5-
6-
; CHECK: 0x007C (char8_t) | char8_t
7-
8-
define dso_local i32 @main() #0 !dbg !9 {
9-
%1 = alloca i32, align 4
10-
%2 = alloca i8, align 1
11-
store i32 0, ptr %1, align 4
12-
call void @llvm.dbg.declare(metadata ptr %2, metadata !13, metadata !DIExpression()), !dbg !15
13-
store i8 0, ptr %2, align 1, !dbg !15
14-
%3 = load i8, ptr %2, align 1, !dbg !16
15-
%4 = zext i8 %3 to i32, !dbg !16
16-
ret i32 %4, !dbg !16
17-
}
18-
19-
; Function Attrs: nofree nosync nounwind readnone speculatable willreturn
20-
declare void @llvm.dbg.declare(metadata, metadata, metadata) #1
21-
22-
attributes #0 = { mustprogress noinline norecurse nounwind optnone uwtable "frame-pointer"="none" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
23-
attributes #1 = { nofree nosync nounwind readnone speculatable willreturn }
24-
25-
!llvm.dbg.cu = !{!0}
26-
!llvm.linker.options = !{}
27-
!llvm.module.flags = !{!3, !4, !5, !6, !7}
28-
!llvm.ident = !{!8}
29-
30-
!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus_14, file: !1, producer: "clang version 13.0.0", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, splitDebugInlining: false, nameTableKind: None)
31-
!1 = !DIFile(filename: "pdb_char8_t.cpp", directory: "C:\\src", checksumkind: CSK_MD5, checksum: "a00748d29f4e59003184945cd3e17ee3")
32-
!2 = !{}
33-
!3 = !{i32 2, !"CodeView", i32 1}
34-
!4 = !{i32 2, !"Debug Info Version", i32 3}
35-
!5 = !{i32 1, !"wchar_size", i32 2}
36-
!6 = !{i32 7, !"PIC Level", i32 2}
37-
!7 = !{i32 7, !"uwtable", i32 1}
38-
!8 = !{!"clang version 13.0.0"}
39-
!9 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 1, type: !10, scopeLine: 2, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)
40-
!10 = !DISubroutineType(types: !11)
41-
!11 = !{!12}
42-
!12 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
43-
!13 = !DILocalVariable(name: "local", scope: !9, file: !1, line: 3, type: !14)
44-
!14 = !DIBasicType(name: "char8_t", size: 8, encoding: DW_ATE_UTF)
45-
!15 = !DILocation(line: 3, scope: !9)
46-
!16 = !DILocation(line: 4, scope: !9)
1+
; REQUIRES: x86
2+
; RUN: llc -mtriple x86_64-windows-msvc -filetype obj -o %t.obj %s
3+
; RUN: lld-link /nodefaultlib /noentry /dll /debug /out:%t.exe /pdb:%t.pdb %t.obj
4+
; RUN: llvm-pdbutil dump -type-index=0x7c %t.pdb
5+
6+
; CHECK: 0x007C (char8_t) | char8_t
7+
8+
define dso_local i32 @main() #0 !dbg !9 {
9+
%1 = alloca i32, align 4
10+
%2 = alloca i8, align 1
11+
store i32 0, ptr %1, align 4
12+
call void @llvm.dbg.declare(metadata ptr %2, metadata !13, metadata !DIExpression()), !dbg !15
13+
store i8 0, ptr %2, align 1, !dbg !15
14+
%3 = load i8, ptr %2, align 1, !dbg !16
15+
%4 = zext i8 %3 to i32, !dbg !16
16+
ret i32 %4, !dbg !16
17+
}
18+
19+
; Function Attrs: nofree nosync nounwind readnone speculatable willreturn
20+
declare void @llvm.dbg.declare(metadata, metadata, metadata) #1
21+
22+
attributes #0 = { mustprogress noinline norecurse nounwind optnone uwtable "frame-pointer"="none" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
23+
attributes #1 = { nofree nosync nounwind readnone speculatable willreturn }
24+
25+
!llvm.dbg.cu = !{!0}
26+
!llvm.linker.options = !{}
27+
!llvm.module.flags = !{!3, !4, !5, !6, !7}
28+
!llvm.ident = !{!8}
29+
30+
!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus_14, file: !1, producer: "clang version 13.0.0", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, splitDebugInlining: false, nameTableKind: None)
31+
!1 = !DIFile(filename: "pdb_char8_t.cpp", directory: "C:\\src", checksumkind: CSK_MD5, checksum: "a00748d29f4e59003184945cd3e17ee3")
32+
!2 = !{}
33+
!3 = !{i32 2, !"CodeView", i32 1}
34+
!4 = !{i32 2, !"Debug Info Version", i32 3}
35+
!5 = !{i32 1, !"wchar_size", i32 2}
36+
!6 = !{i32 7, !"PIC Level", i32 2}
37+
!7 = !{i32 7, !"uwtable", i32 1}
38+
!8 = !{!"clang version 13.0.0"}
39+
!9 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 1, type: !10, scopeLine: 2, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)
40+
!10 = !DISubroutineType(types: !11)
41+
!11 = !{!12}
42+
!12 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
43+
!13 = !DILocalVariable(name: "local", scope: !9, file: !1, line: 3, type: !14)
44+
!14 = !DIBasicType(name: "char8_t", size: 8, encoding: DW_ATE_UTF)
45+
!15 = !DILocation(line: 3, scope: !9)
46+
!16 = !DILocation(line: 4, scope: !9)

lld/test/ELF/dynamic-list-cpp.s

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
# REQUIRES: x86
2-
3-
## Confirm both mangled and unmangled names may appear in
4-
## the --dynamic-list file.
5-
6-
# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
7-
8-
# RUN: echo '{ _Z1fv; extern "C++" { "g()"; }; };' > %t.list
9-
# RUN: ld.lld -pie --dynamic-list %t.list %t.o -o %t
10-
# RUN: llvm-readelf --dyn-syms %t | FileCheck %s
11-
12-
# CHECK: Symbol table '.dynsym' contains 3 entries:
13-
# CHECK: _Z1fv
14-
# CHECK-NEXT: _Z1gv
15-
16-
.globl _Z1fv, _Z1gv
17-
_Z1fv:
18-
_Z1gv:
1+
# REQUIRES: x86
2+
3+
## Confirm both mangled and unmangled names may appear in
4+
## the --dynamic-list file.
5+
6+
# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
7+
8+
# RUN: echo '{ _Z1fv; extern "C++" { "g()"; }; };' > %t.list
9+
# RUN: ld.lld -pie --dynamic-list %t.list %t.o -o %t
10+
# RUN: llvm-readelf --dyn-syms %t | FileCheck %s
11+
12+
# CHECK: Symbol table '.dynsym' contains 3 entries:
13+
# CHECK: _Z1fv
14+
# CHECK-NEXT: _Z1gv
15+
16+
.globl _Z1fv, _Z1gv
17+
_Z1fv:
18+
_Z1gv:

0 commit comments

Comments
 (0)