[PATCH] D74169: [WIP][LLD][ELF][DebugInfo] Skeleton implementation of removing obsolete debug info.
    Alexey Lapshin via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Mar 18 05:24:42 PDT 2020
    
    
  
avl added a comment.
@ruiu, @grimar, @MaskRay
While working on "remove obsolete debug info in lld" patch 
I need to generate the DWARF section contents. dsymutil 
uses AsmPrinter to create DWARF. Thus to create things 
in the same way, I need to  add AsmPrinter library and targets libraries:
  --- a/lld/ELF/CMakeLists.txt
  +++ b/lld/ELF/CMakeLists.txt
  @@ -59,6 +59,10 @@ add_lld_library(lldELF
     Option
     Passes
     Support
  +  AllTargetsCodeGens
  +  AllTargetsDescs
  +  AllTargetsInfos
  +  AsmPrinter
Would it be OK to add these libraries to lld code ?
If that is not OK, then alternative solution would be to refactor 
DWARF generation code to remove dependence on AsmPrinter and friends.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D74169/new/
https://reviews.llvm.org/D74169
    
    
More information about the llvm-commits
mailing list