This is an archive of the discontinued LLVM Phabricator instance.

Simplify removing empty output sections
ClosedPublic

Authored by espindola on Feb 28 2018, 12:39 PM.

Details

Reviewers
grimar
ruiu
Summary

With this the meaning of the Live bit in output sections is clear: we have at some point added a input section into it.

A followup patch could probably replace it by making the Flags field Optional.

Diff Detail

Event Timeline

espindola created this revision.Feb 28 2018, 12:39 PM
ruiu accepted this revision.Feb 28 2018, 2:30 PM

LGTM

ELF/LinkerScript.cpp
775

It feels like this function name is not right because this function does more than checking if all members are section descriptions. Can you rename?

This revision is now accepted and ready to land.Feb 28 2018, 2:30 PM