This is an archive of the discontinued LLVM Phabricator instance.

[ELF] Create reference to symbol map.
ClosedPublic

Authored by shankarke on Feb 23 2015, 2:25 PM.

Details

Reviewers
ruiu
atanasyan
Summary

In LLD's model, symbol is a property of the node (atom) and not a property of edge (reference). Prior to this patch, we stored the symbol in the reference. From post-commit comments, it seemed better to create a map from the reference to the symbol instead and use this mapping wherever desired.

This patch does that.

Diff Detail

Event Timeline

shankarke updated this revision to Diff 20547.Feb 23 2015, 2:25 PM
shankarke retitled this revision from to [ELF] Create reference to symbol map..
shankarke updated this object.
shankarke edited the test plan for this revision. (Show Details)
shankarke added reviewers: ruiu, atanasyan.
shankarke added a project: lld.
shankarke added a subscriber: Unknown Object (MLST).
shankarke added inline comments.Feb 23 2015, 2:27 PM
lib/ReaderWriter/ELF/ELFFile.h
399

this is a minor nit and will fix.

ruiu accepted this revision.Feb 23 2015, 2:29 PM
ruiu edited edge metadata.

I'm still reading the prior patches but this patch itself looks good.

lib/ReaderWriter/ELF/ELFFile.h
399

Remove

This revision is now accepted and ready to land.Feb 23 2015, 2:29 PM