Go to file
Bob Haarman 61e8735f17 [lld-link] preserve @llvm.used symbols in LTO
Summary:
We translate @llvm.used to COFF by generating /include directives
in the .drectve section. However, in LTO links, this happens after
directives have already been processed, so the new directives do
not take effect. This change marks @llvm.used symbols as GCRoots
so that they are preserved as intended.

Fixes PR40733.

Reviewers: rnk, pcc, ruiu

Reviewed By: ruiu

Subscribers: mehdi_amini, steven_wu, dexonsmith, dang, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D58255

llvm-svn: 354410
2019-02-20 00:26:01 +00:00
clang Remove extraneous space in MSVC-style diagnostic output 2019-02-19 16:58:25 +00:00
clang-tools-extra [clangd] Add an option in the code to not display number of fixes 2019-02-19 16:50:37 +00:00
compiler-rt [msan] Fix name_to_handle_at test on overlayfs. 2019-02-19 23:41:42 +00:00
debuginfo-tests Set config.lit_tools_dir, which is needed by lit.llvm.initialize. 2018-11-06 21:54:27 +00:00
libclc Adjust documentation for git migration. 2019-01-29 16:37:27 +00:00
libcxx [compiler-rt] Build custom libcxx with libcxxabi 2019-02-17 12:16:20 +00:00
libcxxabi [libcxxabi][CMake] Drop unused HandleOutOfTreeLLVM include 2019-02-18 20:58:06 +00:00
libunwind [CMake] Don't cache LLVM_MAIN_SRC_DIR 2019-02-13 07:09:26 +00:00
lld [lld-link] preserve @llvm.used symbols in LTO 2019-02-20 00:26:01 +00:00
lldb [lldb-instr] Don't print REGISTER macro when RECORD is already present 2019-02-19 23:13:29 +00:00
llgo Adjust documentation for git migration. 2019-01-29 16:37:27 +00:00
llvm [lld-link] preserve @llvm.used symbols in LTO 2019-02-20 00:26:01 +00:00
openmp [OpenMP] Remove XFAIL for cancellation tests using gcc 2019-02-19 19:00:29 +00:00
parallel-libs Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
polly [opaque pointer types] Update calls to CreateCall to pass the function 2019-02-08 19:30:46 +00:00
pstl [pstl] Remove some warnings when compiling with a recent Clang 2019-02-15 17:30:35 +00:00
.arcconfig Update monorepo .arcconfig with new project callsign. 2019-01-31 14:34:59 +00:00
.clang-format Add .clang-tidy and .clang-format files to the toplevel of the 2019-01-29 16:43:16 +00:00
.clang-tidy Disable tidy checks with too many hits 2019-02-01 11:20:13 +00:00
README.md

README.md

The LLVM Compiler Infrastructure

This directory and its subdirectories contain source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and runtime environments.