[llvm-locstats][NFC] Support OOP concept
authorDjordje Todorovic <djordje.todorovic@rt-rk.com>
Mon, 13 Jan 2020 11:31:28 +0000 (12:31 +0100)
committerDjordje Todorovic <djordje.todorovic@rt-rk.com>
Wed, 15 Jan 2020 10:41:09 +0000 (11:41 +0100)
commita3ebc40644d7e93841d1f8c8994f1f22023960ad
tree2df1d01a0e5bf166d99ff80a52a521041d5b614d
parent109e4d12edda07bdec139de36d9fdb6f73399f92
[llvm-locstats][NFC] Support OOP concept

Making these changes, the code becomes more robust and easier for
adding the new features.

  -Introduce the LocationStats class representing the statistics
  -Add the pretty_print() method in the LocationStats class
  -Add additional '-' for the program options
  -Add the verify_program_inputs() function
  -Add the parse_locstats() function
  -Rename 'results' => 'opts'
  -Add more comments

Differential Revision: https://reviews.llvm.org/D71868
llvm/docs/CommandGuide/llvm-locstats.rst
llvm/utils/llvm-locstats/llvm-locstats.py