aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-03-16 21:19:36 +0000
committerRui Ueyama <ruiu@google.com>2017-03-16 21:19:36 +0000
commite1bf1365d716003fb5ad9ad365bfb187de964a16 (patch)
tree1544a2bc4a9627630dc00849ba3764359ac2dac7 /llvm/lib/Transforms/Utils/InlineFunction.cpp
parent60faea19f8ce95b82fcd436051cad490190b8fbb (diff)
downloadllvm-e1bf1365d716003fb5ad9ad365bfb187de964a16.zip
llvm-e1bf1365d716003fb5ad9ad365bfb187de964a16.tar.gz
llvm-e1bf1365d716003fb5ad9ad365bfb187de964a16.tar.bz2
Do not pass archive files containing non-native object files.
The MSVC linker doesn't like archive files containing non-native object files. When we are doing an LTO build, we may create archive files containing both LLVM bitcode files and native object files. For example, if a project contains assembly files and C++ files, we create native object files for the assembly files and LLVM bitcode files for the C++ files. With the /msvclto option, LLD passes archive files to the MSVC linker. Previously, we didn't pass archive files if they contain at least one bitcode files. That wasn't correct because the native object files that weren't passed to the MSVC linker may be needed to complete linking. In this patch, we create new temporary archive files to strip bitcode files. Differential Revision: https://reviews.llvm.org/D31053 llvm-svn: 297997
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
0 files changed, 0 insertions, 0 deletions