mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-18 18:42:46 +02:00
[llvm-symbolizer] improve test and fix doc example after recent --print-source-context-lines behaviour change
I believe that after https://reviews.llvm.org/D102355 the behaviour of --print-source-context-lines has changed. Before: --print-source-context-lines=3 prints 4 lines. After: --print-source-context-lines=3 prints 3 lines. Adjust the example in the docs for this change and make the testing a little more robust. Differential Revision: https://reviews.llvm.org/D104114
This commit is contained in:
parent
7c0accc327
commit
a74f81f967
@ -359,7 +359,7 @@ OPTIONS
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
$ llvm-symbolizer --obj=test.elf 0x400490 --print-source-context-lines=2
|
||||
$ llvm-symbolizer --obj=test.elf 0x400490 --print-source-context-lines=3
|
||||
baz()
|
||||
/tmp/test.cpp:11:0
|
||||
10 : volatile int k = 42;
|
||||
|
@ -20,9 +20,10 @@ int main() {
|
||||
// location independent.
|
||||
|
||||
// CHECK: inc
|
||||
// CHECK: print_context.c:3
|
||||
// CHECK: 1 : #include
|
||||
// CHECK: 2 :
|
||||
// CHECK: 3 >: int inc
|
||||
// CHECK: 4 : return
|
||||
// CHECK: 5 : }
|
||||
// CHECK-NEXT: print_context.c:3
|
||||
// CHECK-NEXT: 1 : #include
|
||||
// CHECK-NEXT: 2 :
|
||||
// CHECK-NEXT: 3 >: int inc
|
||||
// CHECK-NEXT: 4 : return
|
||||
// CHECK-NEXT: 5 : }
|
||||
// CHECK-NOT: 6
|
||||
|
Loading…
Reference in New Issue
Block a user