diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-01-21 23:34:23 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-01-21 23:34:23 +0000 |
commit | 70e06bdbae1befc54312d87c4e61d0fe4dc3c1fd (patch) | |
tree | 46aecc4f6877f1e348c2908dfe86c67e2199543b | |
parent | 1322ca1364668077460c16897b5aaca5f6db88e0 (diff) | |
download | bcm5719-llvm-70e06bdbae1befc54312d87c4e61d0fe4dc3c1fd.tar.gz bcm5719-llvm-70e06bdbae1befc54312d87c4e61d0fe4dc3c1fd.zip |
Update CmpDriver to report missing commands.
llvm-svn: 62728
-rwxr-xr-x | clang/utils/CmpDriver | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/clang/utils/CmpDriver b/clang/utils/CmpDriver index cc4caad4f66..54209843df7 100755 --- a/clang/utils/CmpDriver +++ b/clang/utils/CmpDriver @@ -152,7 +152,16 @@ def main(): differ = True # Compare commands. - for i,(a,b) in enumerate(zip(infoA.commands, infoB.commands)): + for i,(a,b) in enumerate(map(None, infoA.commands, infoB.commands)): + if a is None: + print 'A MISSING:',' '.join(b) + differ = True + continue + elif b is None: + print 'B MISSING:',' '.join(a) + differ = True + continue + diff = DriverZipperDiff(a,b) diffs = list(diff.getDiffs()) if diffs: @@ -169,7 +178,7 @@ def main(): print 'mismatch: A: %s' % aElt print ' B: %s' % bElt differ = True - + # Compare result codes. if infoA.exitCode != infoB.exitCode: print '-- EXIT CODES DIFFER -' |