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

Unified Diff: szdiff.py

Issue 358013003: Subzero: Partial implementation of global initializers. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: First-round updates Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
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:

Powered by Google App Engine
This is Rietveld 408576698