[PATCH] D78988: [LTO] Suppress emission of the empty object file

Kuan Hsu Chen (Zakk) via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 28 03:11:28 PDT 2020


khchen created this revision.
khchen added a reviewer: tejohnson.
Herald added subscribers: llvm-commits, luismarques, s.egerton, lenary, dang, PkmX, dexonsmith, steven_wu, MaskRay, simoncook, hiraditya, arichardson, inglorion, emaste.
Herald added a reviewer: espindola.
Herald added a reviewer: MaskRay.
Herald added a project: LLVM.
khchen added a child revision: D78035: [PoC][RISCV] enable LTO/ThinLTO on RISCV .

In ThinLTO, RegularLTO would generate empty object from empty CombinedModule,
empty module does not have target-abi module flag so it causes linking error in RISCV-V
target, the deatil description  mentioned in https://reviews.llvm.org/D78035.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D78988

Files:
  lld/COFF/LTO.cpp
  lld/ELF/LTO.cpp
  lld/test/COFF/lto-obj-path.ll
  lld/test/COFF/pdb-thinlto.ll
  lld/test/ELF/lto/linker-script-symbols-assign.ll
  lld/test/ELF/lto/thinlto-obj-path.ll
  llvm/include/llvm/LTO/Config.h
  llvm/lib/LTO/LTOBackend.cpp
  llvm/test/ThinLTO/X86/Inputs/empty-object.ll
  llvm/test/ThinLTO/X86/empty-module.ll
  llvm/test/ThinLTO/X86/empty-object.ll
  llvm/test/tools/gold/X86/thinlto.ll
  llvm/tools/gold/gold-plugin.cpp
  llvm/tools/llvm-lto2/llvm-lto2.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78988.260574.patch
Type: text/x-patch
Size: 12402 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200428/6279a8b3/attachment-0001.bin>


More information about the llvm-commits mailing list