aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Compression.cpp
diff options
context:
space:
mode:
authorAlexey Lapshin <a.v.lapshin@mail.ru>2020-04-30 14:05:17 +0300
committerAlexey Lapshin <a.v.lapshin@mail.ru>2020-05-03 14:00:25 +0300
commit4f576ea731efca6dffd595d1f6dcc77256073d19 (patch)
treecb6fc350d65e71c5674652bf764e4b3ee72ddbd9 /llvm/lib/Support/Compression.cpp
parent7c649b58f02996fc89032df20d1377f8ef76f70c (diff)
downloadllvm-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