[PATCH] D42201: CodeGen: handle llvm.used properly for COFF

Saleem Abdulrasool via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 17 15:06:04 PST 2018


compnerd created this revision.
compnerd added a reviewer: rnk.
Herald added a subscriber: javed.absar.

`llvm.used` contains a list of pointers to named values which the
compiler, assembler, and linker are required to treat as if there is a
reference that they cannot see.  Ensure that the symbols are preserved
by adding an explicit `-include` reference to the linker command.


Repository:
  rL LLVM

https://reviews.llvm.org/D42201

Files:
  include/llvm/CodeGen/TargetLoweringObjectFile.h
  include/llvm/CodeGen/TargetLoweringObjectFileImpl.h
  include/llvm/IR/Mangler.h
  lib/CodeGen/TargetLoweringObjectFileImpl.cpp
  lib/IR/Mangler.cpp
  lib/Target/ARM/ARMAsmPrinter.cpp
  lib/Target/X86/X86AsmPrinter.cpp
  test/CodeGen/X86/coff-no-dead-strip.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42201.130285.patch
Type: text/x-patch
Size: 5822 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180117/f24f6431/attachment.bin>


More information about the llvm-commits mailing list