[all-commits] [llvm/llvm-project] dcf649: LLD already has a mechanism for caching creation o...

avl-llvm via All-commits all-commits at lists.llvm.org
Fri Mar 6 10:17:27 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: dcf6494abed7550fc84d6b59b33efc634a95c1fe
      https://github.com/llvm/llvm-project/commit/dcf6494abed7550fc84d6b59b33efc634a95c1fe
  Author: Alexey Lapshin <a.v.lapshin at mail.ru>
  Date:   2020-03-06 (Fri, 06 Mar 2020)

  Changed paths:
    M lld/ELF/InputFiles.cpp
    M lld/ELF/InputFiles.h
    M lld/ELF/SyntheticSections.cpp
    M lld/include/lld/Common/DWARF.h
    M lld/test/ELF/gdb-index-invalid-ranges.s
    M lld/test/ELF/gdb-index-parse-fail.s

  Log Message:
  -----------
  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




More information about the All-commits mailing list