[all-commits] [llvm/llvm-project] 6ca1df: [HWASan] Clean up hwasan_symbolize.

Florian Mayer via All-commits all-commits at lists.llvm.org
Thu May 5 16:41:28 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6ca1df61d29c1c46d8d6f51a1091a7651c8b1ab1
      https://github.com/llvm/llvm-project/commit/6ca1df61d29c1c46d8d6f51a1091a7651c8b1ab1
  Author: Florian Mayer <fmayer at google.com>
  Date:   2022-05-05 (Thu, 05 May 2022)

  Changed paths:
    M compiler-rt/lib/hwasan/scripts/hwasan_symbolize

  Log Message:
  -----------
  [HWASan] Clean up hwasan_symbolize.

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__'`.

Reviewed By: eugenis

Differential Revision: https://reviews.llvm.org/D125032




More information about the All-commits mailing list