diff options
author | Alexey Lapshin <a.v.lapshin@mail.ru> | 2020-02-27 20:38:42 +0300 |
---|---|---|
committer | Alexey Lapshin <a.v.lapshin@mail.ru> | 2020-03-06 21:17:07 +0300 |
commit | dcf6494abed7550fc84d6b59b33efc634a95c1fe (patch) | |
tree | 54627e88c2775f83023a181e42f488d73f6554cb /lldb/source/Interpreter/CommandObject.cpp | |
parent | 000847f8bed4a8624de3e39ff90af721cf8a1e2b (diff) | |
download | llvm-dcf6494abed7550fc84d6b59b33efc634a95c1fe.zip llvm-dcf6494abed7550fc84d6b59b33efc634a95c1fe.tar.gz llvm-dcf6494abed7550fc84d6b59b33efc634a95c1fe.tar.bz2 |
LLD already has a mechanism for caching creation of DWARCContext:
llvm::call_once(initDwarfLine, [this]() { initializeDwarf(); });
Though it is not used in all places.
I need that patch for implementing "Remove obsolete debug info" feature
(D74169). But this caching mechanism is useful by itself, and I think it
would be good to use it without connection to "Remove obsolete debug info"
feature. So this patch changes inplace creation of DWARFContext with
its cached version.
Depends on D74308
Reviewed By: ruiu
Differential Revision: https://reviews.llvm.org/D74773
Diffstat (limited to 'lldb/source/Interpreter/CommandObject.cpp')
0 files changed, 0 insertions, 0 deletions