This is an archive of the discontinued LLVM Phabricator instance.

Don't expose a map in the DWARFContext interface
ClosedPublic

Authored by rafael on Jul 12 2017, 1:01 PM.

Details

Reviewers
dblaikie
Summary

Doing so is leaking an implementation detail.

I have an implementation that uses the lld infrastructure and doesn't use a map or object::SectionRef.

Diff Detail

Event Timeline

rafael created this revision.Jul 12 2017, 1:01 PM
dblaikie edited edge metadata.Jul 12 2017, 1:08 PM

Worth using the extra storage like that? I guess a type-erased range is a bit much, but what about a callback-based API? ("forEachTypeSection(function_ref<void(DWARFSection&)>)")

Use a callback instead.

dblaikie accepted this revision.Jul 12 2017, 1:55 PM

Looks great!

This revision is now accepted and ready to land.Jul 12 2017, 1:55 PM
espindola closed this revision.Mar 14 2018, 3:50 PM
espindola added a subscriber: espindola.

307846