Commit ffba31a6 authored by thakis@chromium.org's avatar thakis@chromium.org

linux: In diff mode, print files with init function that calls 0 initializers.

clang writes two of these for some reason, and due to the script not
printing these it took me a while to figure out why clang has initializers
for two more files.

BUG=360311
NOTRY=true

Review URL: https://codereview.chromium.org/251873003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266323 0039d316-1c4b-4281-b951-d872f2087c98
parent 1a7ff50d
...@@ -214,7 +214,10 @@ def main(): ...@@ -214,7 +214,10 @@ def main():
ref_output.append(ref) ref_output.append(ref)
if opts.diffable: if opts.diffable:
print '\n'.join('# ' + qualified_filename + ' ' + r for r in ref_output) if ref_output:
print '\n'.join('# ' + qualified_filename + ' ' + r for r in ref_output)
else:
print '# %s: (empty initializer list)' % qualified_filename
else: else:
print '%s (initializer offset 0x%x size 0x%x)' % (qualified_filename, print '%s (initializer offset 0x%x size 0x%x)' % (qualified_filename,
addr, size) addr, size)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment