Chromium Code Reviews| Index: szdiff.py |
| diff --git a/szdiff.py b/szdiff.py |
| index 046982ea2b87b540b3213e3f03ff8d6bbaecb2a0..ea882a0e5bbdb6b4494f14dd3e018e3ac56ee7d9 100755 |
| --- a/szdiff.py |
| +++ b/szdiff.py |
| @@ -42,7 +42,13 @@ if __name__ == '__main__': |
| llc_out = [] |
| tail_call = re.compile(' tail call '); |
| trailing_comment = re.compile(';.*') |
| - ignore_pattern = re.compile('^ *$|^declare|^@') |
| + #ignore_pattern = re.compile('^ *$|^declare|^@.*\]$') |
|
jvoung (off chromium)
2014/06/28 17:00:33
could remove the old copy now
Jim Stichnoth
2014/06/29 14:33:46
Done.
|
| + ignore_pattern = re.compile('|'.join([ |
| + '^ *$', # all-whitespace lines |
| + '^declare', # declarations without definitions |
| + '^@.*\]$' # PNaCl global declarations like: |
| + # @v = external global [4 x i8] |
| + ])) |
| prev_line = None |
| for line in bitcode: |
| if prev_line: |