diff options
author | Joel E. Denny <jdenny.ornl@gmail.com> | 2019-12-17 10:23:11 -0500 |
---|---|---|
committer | Joel E. Denny <jdenny.ornl@gmail.com> | 2019-12-17 10:49:34 -0500 |
commit | 9658e77e27fa2a93667f840d230086d783fed6dc (patch) | |
tree | 317dc5a1d7e4a289df48635f87c76179d5257036 /llvm/lib/Transforms/Utils/CodeMoverUtils.cpp | |
parent | fbaf835c5c515bf00dccd880b8afe0b2e0a10e06 (diff) | |
download | llvm-9658e77e27fa2a93667f840d230086d783fed6dc.zip llvm-9658e77e27fa2a93667f840d230086d783fed6dc.tar.gz llvm-9658e77e27fa2a93667f840d230086d783fed6dc.tar.bz2 |
[lit] Fix internal diff newlines for -w/-b
For example, without this patch:
```
$ python $LIT_BUILTINS/diff.py -b foo.txt bar.txt
*** /tmp/foo.txt
--- /tmp/bar.txt
***************
*** 1,2 ****
1! 2--- 1,2 ----
1! 20
```
With this patch:
```
$ python $LIT_BUILTINS/diff.py -b foo.txt bar.txt
*** /tmp/foo.txt
--- /tmp/bar.txt
***************
*** 1,2 ****
1
! 2
--- 1,2 ----
1
! 20
```
Reviewed By: rnk
Differential Revision: https://reviews.llvm.org/D71577
Diffstat (limited to 'llvm/lib/Transforms/Utils/CodeMoverUtils.cpp')
0 files changed, 0 insertions, 0 deletions