This is an archive of the discontinued LLVM Phabricator instance.

ELF: Merge DefinedRegular and Defined.
ClosedPublic

Authored by pcc on Nov 5 2017, 2:02 PM.

Details

Summary

Now that DefinedRegular is the only remaining derived class of
Defined, we can merge the two classes.

Depends on D39666

Diff Detail

Repository
rL LLVM

Event Timeline

pcc created this revision.Nov 5 2017, 2:02 PM
ruiu accepted this revision.Nov 5 2017, 2:33 PM

LGTM

lld/ELF/Symbols.h
95–97 ↗(On Diff #121665)

(off topic)

We should remove these functions and use isa<> instead. I think we needed them because some symbol subclasses were template classes, but not anymore.

104 ↗(On Diff #121665)

I expect you'll remove this function in a follow-up patch.

This revision is now accepted and ready to land.Nov 5 2017, 2:33 PM
pcc added inline comments.Nov 5 2017, 8:31 PM
lld/ELF/Symbols.h
104 ↗(On Diff #121665)

Right.

This revision was automatically updated to reflect the committed changes.