[test-suite] r264500 - lit/codesize: Fix warning reports

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 25 21:05:53 PDT 2016


Author: matze
Date: Fri Mar 25 23:05:52 2016
New Revision: 264500

URL: http://llvm.org/viewvc/llvm-project?rev=264500&view=rev
Log:
lit/codesize: Fix warning reports

Modified:
    test-suite/trunk/litsupport/codesize.py

Modified: test-suite/trunk/litsupport/codesize.py
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/litsupport/codesize.py?rev=264500&r1=264499&r2=264500&view=diff
==============================================================================
--- test-suite/trunk/litsupport/codesize.py (original)
+++ test-suite/trunk/litsupport/codesize.py Fri Mar 25 23:05:52 2016
@@ -24,10 +24,15 @@ def _getCodeSize(context):
                             context.executable)
         else:
             for l in lines[2:]:
+                l = l.strip()
+                if l == "":
+                    continue
                 values = l.split()
-                if len(values) < 2 or values[0] == 'Total':
+                if len(values) < 2:
                     logging.info("Ignoring malformed output line: %s", l)
                     continue
+                if values[0] == 'Total':
+                    continue
                 try:
                     name = values[0]
                     val = int(values[1])




More information about the llvm-commits mailing list