diff options
author | Michael Pozulp <pozulp.llvm@gmail.com> | 2019-06-07 06:23:54 +0000 |
---|---|---|
committer | Michael Pozulp <pozulp.llvm@gmail.com> | 2019-06-07 06:23:54 +0000 |
commit | 767bdd55e1a082bb7b32ae9c8cf15a0584439dfd (patch) | |
tree | 1a3876869fcb1fbe1ceda8d43e0e0647b85c1750 /llvm/test/tools/llvm-objdump/X86/source-interleave-same-line-different-file.test | |
parent | 53211aa9f130ce307c86698953e09746d70a6ef1 (diff) | |
download | bcm5719-llvm-767bdd55e1a082bb7b32ae9c8cf15a0584439dfd.tar.gz bcm5719-llvm-767bdd55e1a082bb7b32ae9c8cf15a0584439dfd.zip |
[llvm-objdump] Print source when subsequent lines in the translation unit come from the same line in two different headers.
Reviewers: grimar, rupprecht, jhenderson
Reviewed By: grimar, jhenderson
Subscribers: llvm-commits, jhenderson
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D62461
llvm-svn: 362771
Diffstat (limited to 'llvm/test/tools/llvm-objdump/X86/source-interleave-same-line-different-file.test')
-rw-r--r-- | llvm/test/tools/llvm-objdump/X86/source-interleave-same-line-different-file.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/X86/source-interleave-same-line-different-file.test b/llvm/test/tools/llvm-objdump/X86/source-interleave-same-line-different-file.test new file mode 100644 index 00000000000..dfd0ce178e9 --- /dev/null +++ b/llvm/test/tools/llvm-objdump/X86/source-interleave-same-line-different-file.test @@ -0,0 +1,12 @@ +## Test that source is printed when subsequent lines in the translation unit +## come from the same line in two different files. + +# RUN: sed -e "s,SRC_COMPDIR,%/p/Inputs,g" %p/Inputs/source-interleave-same-line-different-file.ll > %t.ll +# RUN: llc -o %t.o -filetype=obj -mtriple=x86_64-pc-linux %t.ll +# RUN: llvm-objdump --source %t.o | FileCheck %s + +# CHECK: 0000000000000000 add1: +# CHECK-NEXT: ; int add1(int a) { return a + 1; } +# +# CHECK: 0000000000000010 return4: +# CHECK-NEXT: ; int return4() { return 4; } |