diff options
author | Alexey Lapshin <a.v.lapshin@mail.ru> | 2020-04-30 14:05:17 +0300 |
---|---|---|
committer | Alexey Lapshin <a.v.lapshin@mail.ru> | 2020-05-03 14:00:25 +0300 |
commit | 4f576ea731efca6dffd595d1f6dcc77256073d19 (patch) | |
tree | cb6fc350d65e71c5674652bf764e4b3ee72ddbd9 /llvm/lib/Support/Compression.cpp | |
parent | 7c649b58f02996fc89032df20d1377f8ef76f70c (diff) | |
download | llvm-4f576ea731efca6dffd595d1f6dcc77256073d19.zip llvm-4f576ea731efca6dffd595d1f6dcc77256073d19.tar.gz llvm-4f576ea731efca6dffd595d1f6dcc77256073d19.tar.bz2 |
[Debuginfo][NFC] Avoid double calling of DWARFDie::find(DW_AT_name).
Summary:
Current implementation of DWARFDie::getName(DINameKind Kind) could
lead to double call to DWARFDie::find(DW_AT_name) in following
scenario:
getName(LinkageName);
getName(ShortName);
getName(LinkageName) calls find(DW_AT_name) if linkage name is not
found. Then, it is called again in getName(ShortName). This patch
alows to request LinkageName and ShortName separately
to avoid extra call to find(DW_AT_name).
It helps D74169 to parse clang debuginfo faster(~1%).
Reviewers: clayborg, dblaikie
Differential Revision: https://reviews.llvm.org/D79173
Diffstat (limited to 'llvm/lib/Support/Compression.cpp')
0 files changed, 0 insertions, 0 deletions