• Samuel Huang's avatar
    [Supersize] Split nm.py into {nm.py, obj_analyzer.py, string_extract.py}. · 5fbc1731
    Samuel Huang authored
    This is a code movement CL with minimal changes. Details:
    - Add obj_analyzer.py: New home for BulkObjectFilenalyzer, along with
      helper functions. Also inherits main() from nm.py for testing.
    - Add string_extract.py: New home for {LookupElfRodataInfo(),
      ReadFileChunks(), and ResolveStringPieces()}. Add top-level comments.
    - nm.py: Have content moved to the new files. Also, exposing
      RunNmOnIntermediates(), to be called from obj_analyzer.py.
    - Update archive.py and console.py to adapt to new code locations.
    
    Bug: 723798
    Change-Id: I1d1670f04549a416f06de1da03c1a2b03c378461
    Reviewed-on: https://chromium-review.googlesource.com/1136943
    Commit-Queue: Samuel Huang <huangs@chromium.org>
    Reviewed-by: default avataragrieve <agrieve@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#575062}
    5fbc1731
nm.py 6.7 KB