This is an archive of the discontinued LLVM Phabricator instance.

llvm-link option and test for recent metadata mapping bug
ClosedPublic

Authored by tejohnson on Nov 19 2015, 6:27 AM.

Details

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.

Diff Detail

Repository
rL LLVM

Event Timeline

tejohnson updated this revision to Diff 40637.Nov 19 2015, 6:27 AM
tejohnson retitled this revision from to llvm-link option and test for recent metadata mapping bug.
tejohnson updated this object.
tejohnson added a reviewer: pcc.
tejohnson added a subscriber: llvm-commits.
tejohnson updated this revision to Diff 40648.Nov 19 2015, 7:52 AM
  • Fix output file in new test.
pcc accepted this revision.Nov 20 2015, 2:04 PM
pcc edited edge metadata.

LGTM

This revision is now accepted and ready to land.Nov 20 2015, 2:04 PM
This revision was automatically updated to reflect the committed changes.