[PATCH] D14843: [ThinLTO/LTO] Don't link in unneeded metadata

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 19 14:33:13 PST 2015


tejohnson created this revision.
tejohnson added reviewers: dexonsmith, joker.eph.
tejohnson added subscribers: llvm-commits, davidxl.
tejohnson added a dependency: D14838: [ThinLTO] Metadata linking for imported functions.
Herald added a subscriber: joker.eph.

Third patch split out from http://reviews.llvm.org/D14752.

Only map in needed DISubroutine metadata (imported or otherwise linked
in functions and other DISubroutine referenced by inlined instructions).
This is supported for ThinLTO, LTO and llvm-link --only-needed, with
associated tests for each one.

Depends on D14838.

http://reviews.llvm.org/D14843

Files:
  include/llvm/Transforms/Utils/ValueMapper.h
  lib/Linker/LinkModules.cpp
  lib/Transforms/Utils/ValueMapper.cpp
  test/Linker/Inputs/only-needed-debug-metadata.ll
  test/Linker/only-needed-debug-metadata.ll
  test/Linker/thinlto_funcimport_debug.ll
  test/tools/gold/X86/Inputs/linkonce-weak.ll
  test/tools/gold/X86/linkonce-weak.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14843.40706.patch
Type: text/x-patch
Size: 15376 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151119/7c440d06/attachment.bin>


More information about the llvm-commits mailing list