Skip to content

Commit 2d35fcb

Browse files
committed
clang format
1 parent 8519343 commit 2d35fcb

File tree

2 files changed

+27
-7
lines changed

2 files changed

+27
-7
lines changed

bolt/test/dwo-name-retrieving.c

100755100644
Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@
44
int main() { return 0; }
55

66
// RUN: rm -rf %t && mkdir -p %t && cd %t
7-
// RUN: %clang %cflags -g -gsplit-dwarf -fdebug-compilation-dir=/path/does/not/exist %s -o main.exe
8-
// RUN: llvm-bolt %t/main.exe -o %t/main.exe.bolt -update-debug-sections 2>&1 | FileCheck %s -check-prefix=NOT-EXIST
7+
// RUN: %clang %cflags -g -gsplit-dwarf \
8+
// RUN: -fdebug-compilation-dir=/path/does/not/exist %s -o main.exe
9+
// RUN: llvm-bolt %t/main.exe -o %t/main.exe.bolt -update-debug-sections \
10+
// RUN: 2>&1 | FileCheck %s -check-prefix=DWO-NAME
11+
// RUN: %clang %cflags -g -gsplit-dwarf \
12+
// RUN: -fdebug-compilation-dir=/path/does/not/exist %s -o %t/main.exe
13+
// RUN: llvm-bolt %t/main.exe -o %t/main.exe.bolt -update-debug-sections \
14+
// RUN: 2>&1 | FileCheck %s -check-prefix=DWO-NAME
915

10-
// NOT-EXIST: BOLT-WARNING: Debug Fission: Debug Compilation Dir wrong for
16+
// DWO-NAME: BOLT-WARNING: Debug Fission: Debug Compilation Dir wrong for
1117

12-
// RUN: rm -rf %t && mkdir -p %t && cd %t
13-
// RUN: %clang %cflags -g -gsplit-dwarf -fdebug-compilation-dir=/path/does/not/exist %s -o %t/main.exe
14-
// RUN: llvm-bolt %t/main.exe -o %t/main.exe.bolt -update-debug-sections 2>&1 | FileCheck %s -check-prefix=FOUND
18+
// DWO-NAMET-NOT: Debug Fission: DWO debug information for
1519

16-
// FOUND-NOT: Debug Fission: DWO debug information for

bolt/test/dwo-name-retrieving.test

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## This test checks retrieving dwo file diercetly with dwo name,
2+
## if the Debug Compilation Dir does not exist.
3+
4+
# RUN: rm -rf %t && mkdir -p %t && cd %t
5+
# RUN: %clang %cflags -g -gsplit-dwarf \
6+
# RUN: -fdebug-compilation-dir=/path/does/not/exist %p/Inputs/hello.c -o main.exe
7+
# RUN: llvm-bolt %t/main.exe -o %t/main.exe.bolt -update-debug-sections \
8+
# RUN: 2>&1 | FileCheck %s -check-prefix=DWO-NAME
9+
# RUN: %clang %cflags -g -gsplit-dwarf \
10+
# RUN: -fdebug-compilation-dir=/path/does/not/exist %p/Inputs/hello.c -o %t/main.exe
11+
# RUN: llvm-bolt %t/main.exe -o %t/main.exe.bolt -update-debug-sections \
12+
# RUN: 2>&1 | FileCheck %s -check-prefix=DWO-NAME
13+
14+
# DWO-NAME: BOLT-WARNING: Debug Fission: Debug Compilation Dir wrong for
15+
# DWO-NAMET-NOT: Debug Fission: DWO debug information for/data00/home/huangjinjie/llvm-project/bolt/test/dwo-name-retrieving.test
16+
17+

0 commit comments

Comments
 (0)