This is an archive of the discontinued LLVM Phabricator instance.

Use object address instead of offset in an archive file.
Needs RevisionPublic

Authored by ruiu on May 10 2018, 2:34 PM.

Details

Reviewers
pcc
espindola
Summary

This patch is more like a question than a real change I want to submit,
but can we just use object address to make each file in an archive has
a unique identifier? If this is OK, we don't need to pass OffsetInArchive
to the ctor.

Event Timeline

ruiu created this revision.May 10 2018, 2:34 PM
pcc requested changes to this revision.May 10 2018, 2:50 PM
pcc added a subscriber: tejohnson.

I believe that these names can end up in various observable places including -save-temps file names and combined module summary indexes, so I don't think we can do this.

This revision now requires changes to proceed.May 10 2018, 2:50 PM