diff options
author | Michael Pozulp <pozulp.llvm@gmail.com> | 2019-08-05 08:52:28 +0000 |
---|---|---|
committer | Michael Pozulp <pozulp.llvm@gmail.com> | 2019-08-05 08:52:28 +0000 |
commit | 3046ef5c1101ff2b9480897a6b52d7d41a8ecf34 (patch) | |
tree | 1291de71342bd74369c90e8f2c8c6893e2593973 /llvm/test/tools/llvm-objdump | |
parent | 76bdcab1ca7b4b853b4338d4f28f2f91fd15c301 (diff) | |
download | bcm5719-llvm-3046ef5c1101ff2b9480897a6b52d7d41a8ecf34.tar.gz bcm5719-llvm-3046ef5c1101ff2b9480897a6b52d7d41a8ecf34.zip |
Revert "[llvm-objdump] Re-commit r367284."
This reverts r367776 (git commit d34099926e909390cb0254bebb4b7f5cf15467c7).
My changes to llvm-objdump tests caused them to fail on windows:
http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/builds/27368
llvm-svn: 367816
Diffstat (limited to 'llvm/test/tools/llvm-objdump')
3 files changed, 6 insertions, 12 deletions
diff --git a/llvm/test/tools/llvm-objdump/X86/source-interleave-invalid-source.test b/llvm/test/tools/llvm-objdump/X86/source-interleave-invalid-source.test index 441a9c2f596..e958173d16e 100644 --- a/llvm/test/tools/llvm-objdump/X86/source-interleave-invalid-source.test +++ b/llvm/test/tools/llvm-objdump/X86/source-interleave-invalid-source.test @@ -1,5 +1,5 @@ ## Test llvm-objdump's --source behaviour when a line number is greater than the -## file length and ensure that we emit a warning. +## file length. # RUN: sed -e "s,SRC_COMPDIR,%/p/Inputs,g" %p/Inputs/source-interleave.ll > %t.ll # RUN: sed -e "s,line: 7,line: 9999,g" %t.ll > %t2.ll @@ -8,11 +8,9 @@ # RUN: llc -o %t2.o -filetype=obj -mtriple=x86_64-pc-linux %t2.ll # RUN: llvm-objdump --source %t.o | FileCheck %s --check-prefixes=CHECK,GOOD -# RUN: llvm-objdump --source %t2.o 2> %t2.e | FileCheck %s --check-prefixes=CHECK --implicit-check-not="int *b = &a;" -# RUN: FileCheck %s --input-file %t2.e --check-prefixes=WARN -DFILE=%p/Inputs/source-interleave-x86_64.c +# RUN: llvm-objdump --source %t2.o | FileCheck %s --implicit-check-not="int *b = &a;" # CHECK: main: # CHECK-NEXT: ; int main() { -# WARN: warning: debug info line number 9999 exceeds the number of lines in [[FILE]] # GOOD: ; int *b = &a; # CHECK: ; return *b + foo(); diff --git a/llvm/test/tools/llvm-objdump/X86/source-interleave-missing-source.test b/llvm/test/tools/llvm-objdump/X86/source-interleave-missing-source.test index 068585e010f..d9877284721 100644 --- a/llvm/test/tools/llvm-objdump/X86/source-interleave-missing-source.test +++ b/llvm/test/tools/llvm-objdump/X86/source-interleave-missing-source.test @@ -1,5 +1,5 @@ ## Test that if the source cannot be found that disassembly is still printed, -## that no source is printed, and that we emit a warning. +## and that no source is printed. # RUN: sed -e "s,SRC_COMPDIR,%/t,g" %p/Inputs/source-interleave.ll > %t.ll # RUN: sed -e "s,SRC_COMPDIR,%/p/Inputs,g" %p/Inputs/source-interleave.ll > %t2.ll @@ -7,11 +7,9 @@ # RUN: llc -o %t.o -filetype=obj -mtriple=x86_64-pc-linux %t.ll # RUN: llc -o %t2.o -filetype=obj -mtriple=x86_64-pc-linux %t2.ll -# RUN: llvm-objdump --source %t.o 2> %t.e | FileCheck %s --check-prefixes=CHECK --implicit-check-not='main()' +# RUN: llvm-objdump --source %t.o | FileCheck %s --implicit-check-not='main()' # RUN: llvm-objdump --source %t2.o | FileCheck %s --check-prefixes=CHECK,SOURCE -# RUN: FileCheck %s --input-file %t.e --check-prefixes=WARN -DFILE=%t/source-interleave-x86_64.c -# WARN: warning: failed to find source [[FILE]] # CHECK: 0000000000000010 main: # SOURCE-NEXT: ; int main() { # CHECK-NEXT: 10: 55 pushq %rbp diff --git a/llvm/test/tools/llvm-objdump/X86/source-interleave-no-debug-info.test b/llvm/test/tools/llvm-objdump/X86/source-interleave-no-debug-info.test index 628edd5c550..15f7b7ecb22 100644 --- a/llvm/test/tools/llvm-objdump/X86/source-interleave-no-debug-info.test +++ b/llvm/test/tools/llvm-objdump/X86/source-interleave-no-debug-info.test @@ -1,15 +1,13 @@ ## Test that if an object has no debug information, only the disassembly is -## printed when --source is specified, and that we emit a warning. +## printed when --source is specified. # RUN: sed -e "s,SRC_COMPDIR,%/p/Inputs,g" %p/Inputs/source-interleave.ll > %t.ll # RUN: llc -o %t.o -filetype=obj -mtriple=x86_64-pc-linux %t.ll # RUN: llvm-objcopy --strip-debug %t.o %t2.o # RUN: llvm-objdump --source %t.o | FileCheck %s --check-prefixes=CHECK,SOURCE -# RUN: llvm-objdump --source %t2.o 2> %t2.e | FileCheck %s --check-prefixes=CHECK --implicit-check-not='main()' -# RUN: FileCheck %s --input-file %t2.e --check-prefixes=WARN -DFILE=%t2.o +# RUN: llvm-objdump --source %t2.o | FileCheck %s --implicit-check-not='main()' -# WARN: warning: failed to parse debug information for [[FILE]] # CHECK: 0000000000000010 main: # SOURCE-NEXT: ; int main() { # CHECK-NEXT: 10: 55 pushq %rbp |