This is an archive of the discontinued LLVM Phabricator instance.

[ThinLTO] Serialize the Module SourceFileName to/from LLVM assembly
ClosedPublic

Authored by tejohnson on Mar 29 2016, 7:50 PM.

Details

Summary

This change serializes out and in the SourceFileName to LLVM assembly
so that it is preserved through "llvm-dis | llvm-as". This is
necessary to ensure that the global identifiers created for local values
in the module summary index are the same even if the bitcode is
streamed out and read back from LLVM assembly.

Serializing the summary itself to LLVM assembly is in progress.

Diff Detail

Event Timeline

tejohnson updated this revision to Diff 52019.Mar 29 2016, 7:50 PM
tejohnson retitled this revision from to [ThinLTO] Serialize the Module SourceFileName to/from LLVM assembly.
tejohnson updated this object.
tejohnson added a reviewer: mehdi_amini.
tejohnson added a subscriber: llvm-commits.
mehdi_amini accepted this revision.Mar 29 2016, 8:25 PM
mehdi_amini edited edge metadata.

LGTM

This revision is now accepted and ready to land.Mar 29 2016, 8:25 PM
This revision was automatically updated to reflect the committed changes.