aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorIvan Zhechev <ivan.zhechev@arm.com>2021-08-20 18:14:59 +0100
committerKiran Chandramohan <kiran.chandramohan@arm.com>2021-08-20 18:28:35 +0100
commit0d1a0f7e8de5a506c0bd409fc27e77fb733f7886 (patch)
tree8835a5261dbd251616d9e2830604336f9decb294 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent3a244fcf298838c9a9765c61d32a9bbcfd2c033a (diff)
downloadllvm-0d1a0f7e8de5a506c0bd409fc27e77fb733f7886.zip
llvm-0d1a0f7e8de5a506c0bd409fc27e77fb733f7886.tar.gz
llvm-0d1a0f7e8de5a506c0bd409fc27e77fb733f7886.tar.bz2
Make test_symbols.py compare files line-by-line
We currently feed full files to Python's unified_diff. It's not quite what we want though - line-by-line comparison makes more sense (we want to be able to identify missing/unnecessary lines) and is also easier to parse for humans. This patch makes sure that we compare one line at a time. This change pretties up the output formatting in the script. Output before: ``` !DEF:/m/s/xINTENT(IN)(Implicit)ObjectEntityREAL(4) !DEF:/m/s/yINTENT(INOUT)(Implicit)ObjectEntityREAL(4) -!-D-E-F-:-f-o-o-b-a-r- puresubroutines(x,y)bind(c) !REF:/m/s/x intent(in)::x ``` Proposed output after: ``` !DEF:/m/s/xINTENT(IN)(Implicit)ObjectEntityREAL(4) !DEF:/m/s/yINTENT(INOUT)(Implicit)ObjectEntityREAL(4) -!DEF:foobar puresubroutines(x,y)bind(c) !REF:/m/s/x intent(in)::x ``` Reviewed By: Meinersbur, awarzynski Differential Revision: https://reviews.llvm.org/D107954
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions