llvm/tools/llvm-link
Teresa Johnson 9f474a019f llvm-link option and test for recent metadata mapping bug
Summary:
Add a -preserve-modules option to llvm-link that simulates LTO
clients that don't destroy modules as they are linked. This enables
reproduction of a recent bug introduced by a metadata linking change
that was only caught when the modules weren't destroyed before
writing bitcode (LTO on Windows).

See http://llvm.org/viewvc/llvm-project?view=revision&revision=253170
for more details on the original bug and the fix.

Confirmed the new test added here reproduces the failure using the new
option when I suppress the fix.

Reviewers: pcc

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D14818

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253740 91177308-0d34-0410-b5e6-96231b3b80d8
2015-11-21 00:35:38 +00:00
..
CMakeLists.txt Restore "Support for ThinLTO function importing and symbol linking." 2015-11-03 00:14:15 +00:00
llvm-link.cpp llvm-link option and test for recent metadata mapping bug 2015-11-21 00:35:38 +00:00
LLVMBuild.txt Restore "Support for ThinLTO function importing and symbol linking." 2015-11-03 00:14:15 +00:00
Makefile Restore "Support for ThinLTO function importing and symbol linking." 2015-11-03 00:14:15 +00:00