Skip to content

Commit b88cffe

Browse files
committed
Explicitly set triple on line-numbers.test
1 parent 64cffc7 commit b88cffe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/test/tools/llvm-nm/X86/line-numbers.test

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
## of main.o.
1919
# RUN: rm -rf %t
2020
# RUN: split-file %s %t
21-
# RUN: llvm-mc -g --filetype=obj %t/main.s -o %t/main.o
21+
# RUN: llvm-mc -g --filetype=obj -triple=x86_64-pc-linux %t/main.s -o %t/main.o
2222
# RUN: llvm-nm -l %t/main.o | FileCheck %s --match-full-lines --implicit-check-not={{.}}
2323
# RUN: llvm-nm --line-numbers %t/main.o | FileCheck %s --match-full-lines --implicit-check-not={{.}}
2424

@@ -34,7 +34,7 @@
3434

3535
## Check that in the absence of DWARF in the whole object, no line number
3636
## information is printed.
37-
# RUN: llvm-mc --filetype=obj %t/main.s -o %t/no-dwarf.o
37+
# RUN: llvm-mc --filetype=obj %t/main.s -triple=x86_64-pc-linux -o %t/no-dwarf.o
3838
# RUN: llvm-nm -l %t/no-dwarf.o | FileCheck %s --check-prefix=NO-DWARF --match-full-lines --implicit-check-not={{.}}
3939

4040
# NO-DWARF: 0000000000001234 a absolute_symbol
@@ -49,23 +49,23 @@
4949

5050
## Check that printing line numbers for undefined values is not attempted in
5151
## the absence of any relocation section.
52-
# RUN: llvm-mc --filetype=obj %t/undef-no-reloc-sections.s -o %t/undef-no-reloc-sections.o
52+
# RUN: llvm-mc --filetype=obj %t/undef-no-reloc-sections.s -triple=x86_64-pc-linux -o %t/undef-no-reloc-sections.o
5353
# RUN: llvm-nm --line-numbers %t/undef-no-reloc-sections.o | FileCheck %s --check-prefix=UNDEF-NO-RELOC-SECTIONS --match-full-lines --implicit-check-not={{.}}
5454

5555
# UNDEF-NO-RELOC-SECTIONS: U undef
5656

5757
## Check that printing line numbers for undefined values does not include
5858
## relocations for non-text sections. This is broken out of main.s to ensure
5959
## that the data relocation for undef comes first.
60-
# RUN: llvm-mc -g --filetype=obj %t/undef-data-reloc.s -o %t/undef-data-reloc.o
60+
# RUN: llvm-mc -g --filetype=obj %t/undef-data-reloc.s -triple=x86_64-pc-linux -o %t/undef-data-reloc.o
6161
# RUN: llvm-nm --line-numbers %t/undef-data-reloc.o | FileCheck %s --check-prefix=UNDEF-DATA-RELOC --match-full-lines --implicit-check-not={{.}}
6262

6363
# UNDEF-DATA-RELOC: 0000000000000000 r data_reloc
6464
# UNDEF-DATA-RELOC-NEXT: U undef
6565

6666
## Check that line numbers can be printed for data definitions. These are broken
6767
## out of main.s since their DWARF cannot be generated with llvm-mc -g.
68-
# RUN: llvm-mc -g --filetype=obj %t/data-dwarf.s -o %t/data-dwarf.o
68+
# RUN: llvm-mc -g --filetype=obj %t/data-dwarf.s -triple=x86_64-pc-linux -o %t/data-dwarf.o
6969
# RUN: llvm-nm --line-numbers %t/data-dwarf.o | FileCheck %s --check-prefix=DATA-DWARF --match-full-lines --implicit-check-not={{.}}
7070

7171
# DATA-DWARF: 0000000000000000 D defined_data /tmp/tmp.c:1

0 commit comments

Comments
 (0)