mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
0474d30343
Summary: gnu addr2line prints DWARF line table discriminators like so: <file>:<line> (discriminator <Number>) This matches that behavior. Document how and when --output-style=GNU prints discriminators Add test for new GNU-style discriminator printing. Reviewers: rupprecht, labath, jhenderson Subscribers: aprantl, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D73318
21 lines
640 B
Plaintext
21 lines
640 B
Plaintext
# Check that llvm-symbolizer prints line-table discriminators properly.
|
|
|
|
RUN: llvm-symbolizer --output-style=GNU -f --obj=%p/Inputs/discrim 0x400590 0x400575 \
|
|
RUN: | FileCheck %s --check-prefix=GNU --match-full-lines
|
|
RUN: llvm-symbolizer --output-style=LLVM -f --obj=%p/Inputs/discrim 0x400590 0x400575 \
|
|
RUN: | FileCheck %s --check-prefix=LLVM --match-full-lines
|
|
|
|
GNU: foo
|
|
GNU: /tmp{{[\\/]}}discrim.c:5
|
|
GNU: main
|
|
GNU: /tmp{{[\\/]}}discrim.c:10
|
|
GNU: foo
|
|
GNU: /tmp{{[\\/]}}discrim.c:5 (discriminator 2)
|
|
|
|
LLVM: foo
|
|
LLVM: /tmp{{[\\/]}}discrim.c:5:7
|
|
LLVM: main
|
|
LLVM: /tmp{{[\\/]}}discrim.c:10:0
|
|
LLVM: foo
|
|
LLVM: /tmp{{[\\/]}}discrim.c:5:17
|