1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00
llvm-mirror/lib/DWARFLinker
Alexey Lapshin 511ea0ddf5 [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
2020-05-03 14:00:25 +03:00
..
CMakeLists.txt [cmake] LLVMDWARFLinker - add include/llvm/DWARFLinker header path 2020-04-18 12:31:41 +01:00
DWARFLinker.cpp [Debuginfo][NFC] Avoid double calling of DWARFDie::find(DW_AT_name). 2020-05-03 14:00:25 +03:00
DWARFLinkerCompileUnit.cpp [dsymutil] Avoid copying swiftinterfaces from the SDK into the dsym bundle 2020-02-26 12:22:50 -08:00
DWARFLinkerDeclContext.cpp [Debuginfo][NFC] Avoid double calling of DWARFDie::find(DW_AT_name). 2020-05-03 14:00:25 +03:00
DWARFStreamer.cpp [DWARFLinker][dsymutil] followup for 88c2137b6d49f88186d0957a4e2d8030a3967334 2020-04-08 16:46:52 +03:00
LLVMBuild.txt