Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Side by Side Diff: pydir/szdiff.py

Issue 554013002: Subzero: Move python scripts into a common pydir. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pydir/llvm2iceinsts.py ('k') | szdiff.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python2 1 #!/usr/bin/env python2
2 2
3 import argparse 3 import argparse
4 import itertools 4 import itertools
5 import re 5 import re
6 6
7 if __name__ == '__main__': 7 if __name__ == '__main__':
8 """Compares a LLVM file with a subzero file for differences. 8 """Compares a LLVM file with a subzero file for differences.
9 9
10 Before comparing, the LLVM file is massaged to remove comments, 10 Before comparing, the LLVM file is massaged to remove comments,
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 lines_diff += 1 88 lines_diff += 1
89 continue 89 continue
90 if sz_line: print 'SZ (%d)> %s' % (lines_total, sz_line) 90 if sz_line: print 'SZ (%d)> %s' % (lines_total, sz_line)
91 if llc_line: print 'LL (%d)> %s' % (lines_total, llc_line) 91 if llc_line: print 'LL (%d)> %s' % (lines_total, llc_line)
92 return_code = 1 92 return_code = 1
93 93
94 if return_code == 0: 94 if return_code == 0:
95 message = 'Success (ignored %d diffs out of %d lines)' 95 message = 'Success (ignored %d diffs out of %d lines)'
96 print message % (lines_diff, lines_total) 96 print message % (lines_diff, lines_total)
97 exit(return_code) 97 exit(return_code)
OLDNEW
« no previous file with comments | « pydir/llvm2iceinsts.py ('k') | szdiff.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698