Skip to content

Commit

Permalink
DWARFv5 default: Switch bolt tests to use DWARFv4 since Bolt doesn't …
Browse files Browse the repository at this point in the history
…support v5 yet

Rough attempt to fix these, since I don't have bolt building locally.
Will see how the buildbots go with it...
  • Loading branch information
dwblaikie committed Jan 24, 2022
1 parent 572fa96 commit 9407a70
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bolt/test/X86/asm-func-debug.test
Expand Up @@ -3,7 +3,7 @@
#
# The input test case foo() contains nops that we remove.

RUN: %clang -g %p/../Inputs/asm_foo.s %p/../Inputs/asm_main.c -o %t.exe
RUN: %clang -gdwarf-4 %p/../Inputs/asm_foo.s %p/../Inputs/asm_main.c -o %t.exe
RUN: llvm-bolt %t.exe -o %t -update-debug-sections
RUN: llvm-dwarfdump -all %t | FileCheck %s

Expand Down
2 changes: 1 addition & 1 deletion bolt/test/X86/inline-debug-info.test
Expand Up @@ -3,7 +3,7 @@

# REQUIRES: system-linux

# RUN: %clang %cflags -O1 -g %p/Inputs/inline-main.c %p/Inputs/inline-foo.c \
# RUN: %clang %cflags -O1 -gdwarf-4 %p/Inputs/inline-main.c %p/Inputs/inline-foo.c \
# RUN: -o %t.exe -Wl,-q
# RUN: llvm-bolt %t.exe -update-debug-sections -print-debug-info \
# RUN: -print-only=main -print-after-lowering -force-inline=foo -o %t.bolt \
Expand Down
2 changes: 1 addition & 1 deletion bolt/test/X86/inlined-function-mixed.test
Expand Up @@ -2,7 +2,7 @@
# debug info does not cause a crash.

RUN: %clangxx %S/Inputs/inlined.cpp -c -o %T/inlined.o
RUN: %clangxx %S/Inputs/inlinee.cpp -c -o %T/inlinee.o -g
RUN: %clangxx %S/Inputs/inlinee.cpp -c -o %T/inlinee.o -gdwarf-4
RUN: %clangxx %T/inlined.o %T/inlinee.o -o %t

RUN: llvm-bolt %t -o %t.bolt -update-debug-sections -reorder-blocks=reverse \
Expand Down
2 changes: 1 addition & 1 deletion bolt/test/keep-aranges.test
Expand Up @@ -4,7 +4,7 @@
REQUIRES: system-linux

RUN: %clang %S/Inputs/icf_baz.c %S/Inputs/icf_main.c -Wl,--icf=all,--gdb-index \
RUN: -g -o %t.exe -fuse-ld=lld
RUN: -gdwarf-4 -o %t.exe -fuse-ld=lld
RUN: llvm-bolt %t.exe -o %t -update-debug-sections -keep-aranges
RUN: llvm-dwarfdump -debug-aranges %t | FileCheck %s

Expand Down
2 changes: 1 addition & 1 deletion bolt/test/non-empty-debug-line.test
Expand Up @@ -3,7 +3,7 @@

REQUIRES: system-linux

RUN: %clang %S/Inputs/hello.c -g -o %t
RUN: %clang %S/Inputs/hello.c -gdwarf-4 -o %t
RUN: llvm-bolt %t -o %t1 -update-debug-sections -funcs=_start
RUN: llvm-readobj -S %t > %t2
RUN: llvm-readobj -S %t1 >> %t2
Expand Down

0 comments on commit 9407a70

Please sign in to comment.