File tree Expand file tree Collapse file tree 2 files changed +27
-7
lines changed Expand file tree Collapse file tree 2 files changed +27
-7
lines changed Original file line number Diff line number Diff line change 44int 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
Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments