[PATCH] D60226: [ThinLTO] Fix ThinLTOCodegenerator to export llvm.used symbols

Steven Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 3 12:29:33 PDT 2019


steven_wu created this revision.
steven_wu added reviewers: tejohnson, pcc, dexonsmith.
Herald added subscribers: dang, jkorous, hiraditya, eraman, inglorion, mehdi_amini.
Herald added a project: LLVM.

ThinLTOCodeGenerator currently does not preserve llvm.used symbols and
it can internalize them. In order to pass the necessary information to the
legacy ThinLTOCodeGenerator, the input to the code generator is
rewritten to be based on lto::InputFile.

This fixes: PR41236
rdar://problem/49293439


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D60226

Files:
  llvm/include/llvm/LTO/LTO.h
  llvm/include/llvm/LTO/legacy/ThinLTOCodeGenerator.h
  llvm/lib/LTO/LTO.cpp
  llvm/lib/LTO/ThinLTOCodeGenerator.cpp
  llvm/test/LTO/X86/Inputs/thinlto-internalize-used2.ll
  llvm/test/LTO/X86/thinlto-internalize-used.ll
  llvm/tools/llvm-lto/llvm-lto.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60226.193570.patch
Type: text/x-patch
Size: 25298 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190403/78564d2b/attachment.bin>


More information about the llvm-commits mailing list