The globals are better expressed as members of the Symbolizer, and all
functions operating on it should be methods instead.
Also using the standard idiom of wrapping the main code in
if __name__ == '__main__'.
Paths
| Differential D125032
[HWASan] Clean up hwasan_symbolize. ClosedPublic Authored by fmayer on May 5 2022, 11:53 AM.
Details Summary The globals are better expressed as members of the Symbolizer, and all Also using the standard idiom of wrapping the main code in
Diff Detail
Event Timelinefmayer added a parent revision: D124950: [HWASan] Allow to linkify symbolizer output..May 5 2022, 11:54 AM Comment Actions LGTM
This revision is now accepted and ready to land.May 5 2022, 1:45 PM Closed by commit rG6ca1df61d29c: [HWASan] Clean up hwasan_symbolize. (authored by fmayer). · Explain WhyMay 5 2022, 4:41 PM This revision was automatically updated to reflect the committed changes. thakis added a reverting change: rGf3d31c7f8173: Revert "[HWASan] Clean up hwasan_symbolize.".May 6 2022, 6:54 AM This revision is now accepted and ready to land.May 6 2022, 11:14 AM Closed by commit rG68cd47e0caff: [HWASan] Clean up hwasan_symbolize. (authored by fmayer). · Explain WhyMay 6 2022, 3:46 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 427467 compiler-rt/lib/hwasan/scripts/hwasan_symbolize
|
I think it would be cleaner to move the code to "main()" and call it here.