[llvm-dwarfdump][Statistics] Distinguish parameters with same name or w/o a name
authorKristina Bessonova <kbessonova@accesssoftek.com>
Tue, 14 Jan 2020 18:37:47 +0000 (20:37 +0200)
committerKristina Bessonova <kbessonova@accesssoftek.com>
Tue, 28 Jan 2020 18:52:20 +0000 (20:52 +0200)
commit5499e2f455caad5c7cf95aa459b8d246e14c6af9
treea6f5e9e46ee1b5dfb97bbaee521b62c143573529
parent57839e51781567e320e6a55bafa5afee3335bebe
[llvm-dwarfdump][Statistics] Distinguish parameters with same name or w/o a name

A few DW_TAG_formal_parameter's of the same function may have the same
name (e.g. variadic (template) functions) or don't have a name at all
(if the parameter isn't used inside the function body), but we still
need to be able to distinguish between them to get correct number of 'total vars'
and 'availability' metric.

Reviewed by: aprantl

Differential Revision: https://reviews.llvm.org/D73003
llvm/test/tools/llvm-dwarfdump/X86/statistics.ll
llvm/tools/llvm-dwarfdump/Statistics.cpp