[llvm] r290722 - Fix indentation in r290716.

Bryant Wong via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 29 12:05:52 PST 2016


Author: bryant
Date: Thu Dec 29 14:05:51 2016
New Revision: 290722

URL: http://llvm.org/viewvc/llvm-project?rev=290722&view=rev
Log:
Fix indentation in r290716.

Use two-space indentation like the rest of the file.

Modified:
    llvm/trunk/utils/update_llc_test_checks.py
    llvm/trunk/utils/update_test_checks.py

Modified: llvm/trunk/utils/update_llc_test_checks.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/update_llc_test_checks.py?rev=290722&r1=290721&r2=290722&view=diff
==============================================================================
--- llvm/trunk/utils/update_llc_test_checks.py (original)
+++ llvm/trunk/utils/update_llc_test_checks.py Thu Dec 29 14:05:51 2016
@@ -226,10 +226,10 @@ def main():
                  for m in [RUN_LINE_RE.match(l) for l in input_lines] if m]
     run_lines = [raw_lines[0]] if len(raw_lines) > 0 else []
     for l in raw_lines[1:]:
-        if run_lines[-1].endswith("\\"):
-            run_lines[-1] = run_lines[-1].rstrip("\\") + " " + l
-        else:
-            run_lines.append(l)
+      if run_lines[-1].endswith("\\"):
+        run_lines[-1] = run_lines[-1].rstrip("\\") + " " + l
+      else:
+        run_lines.append(l)
 
     if args.verbose:
       print >>sys.stderr, 'Found %d RUN lines:' % (len(run_lines),)

Modified: llvm/trunk/utils/update_test_checks.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/update_test_checks.py?rev=290722&r1=290721&r2=290722&view=diff
==============================================================================
--- llvm/trunk/utils/update_test_checks.py (original)
+++ llvm/trunk/utils/update_test_checks.py Thu Dec 29 14:05:51 2016
@@ -296,10 +296,10 @@ def main():
                  for m in [RUN_LINE_RE.match(l) for l in input_lines] if m]
     run_lines = [raw_lines[0]] if len(raw_lines) > 0 else []
     for l in raw_lines[1:]:
-        if run_lines[-1].endswith("\\"):
-            run_lines[-1] = run_lines[-1].rstrip("\\") + " " + l
-        else:
-            run_lines.append(l)
+      if run_lines[-1].endswith("\\"):
+        run_lines[-1] = run_lines[-1].rstrip("\\") + " " + l
+      else:
+        run_lines.append(l)
 
     if args.verbose:
       print >>sys.stderr, 'Found %d RUN lines:' % (len(run_lines),)




More information about the llvm-commits mailing list