diff options
author | Djordje Todorovic <djordje.todorovic@rt-rk.com> | 2019-09-23 07:57:53 +0000 |
---|---|---|
committer | Djordje Todorovic <djordje.todorovic@rt-rk.com> | 2019-09-23 07:57:53 +0000 |
commit | 0e490ae0a93c8b6ec48366ac7d46da442542b902 (patch) | |
tree | 19e0ec4a5a87da97cc7fb64e8b9f96710993d4f0 /llvm/test/lit.cfg.py | |
parent | [lldb] Fix that importing decls in a TagDecl end up in wrong declaration cont... (diff) | |
download | llvm-project-0e490ae0a93c8b6ec48366ac7d46da442542b902.tar.gz llvm-project-0e490ae0a93c8b6ec48366ac7d46da442542b902.tar.bz2 llvm-project-0e490ae0a93c8b6ec48366ac7d46da442542b902.zip |
Reland "[utils] Implement the llvm-locstats tool"
The tool reports verbose output for the DWARF debug location coverage.
The llvm-locstats for each variable or formal parameter DIE computes what
percentage from the code section bytes, where it is in scope, it has
location description. The line 0 shows the number (and the percentage) of
DIEs with no location information, but the line 100 shows the number (and
the percentage) of DIEs where there is location information in all code
section bytes (where the variable or parameter is in the scope). The line
50..59 shows the number (and the percentage) of DIEs where the location
information is in between 50 and 59 percentage of its scope covered.
Differential Revision: https://reviews.llvm.org/D66526
llvm-svn: 372554
Diffstat (limited to 'llvm/test/lit.cfg.py')
-rw-r--r-- | llvm/test/lit.cfg.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/lit.cfg.py b/llvm/test/lit.cfg.py index 6771b9e7fee8..5de95ebc136e 100644 --- a/llvm/test/lit.cfg.py +++ b/llvm/test/lit.cfg.py @@ -124,6 +124,9 @@ if config.have_ocamlopt: opt_viewer_cmd = '%s %s/tools/opt-viewer/opt-viewer.py' % (sys.executable, config.llvm_src_root) +config.substitutions.append( + ('%llvm-locstats', "'%s' %s" % (config.python_executable, + os.path.join(config.llvm_tools_dir, 'llvm-locstats')))) tools = [ ToolSubst('%lli', FindTool('lli'), post='.', extra_args=lli_args), ToolSubst('%llc_dwarf', FindTool('llc'), extra_args=llc_args), |