This is an archive of the discontinued LLVM Phabricator instance.

Handle parsing AT(ADDR(.foo-bar))
ClosedPublic

Authored by espindola on Jan 17 2018, 10:49 AM.

Details

Reviewers
ruiu
Summary

The problem we have with it is that anything inside an AT is as expression, so we fail to parse the section name because of the - in it.

Diff Detail

Event Timeline

espindola created this revision.Jan 17 2018, 10:49 AM
ruiu added inline comments.Jan 17 2018, 1:12 PM
ELF/ScriptParser.cpp
795

I think even if we have to repeat very similar code twice, that's still better than defining a new class for RAII.

Don't add a RAII class.

ruiu accepted this revision.Jan 17 2018, 2:11 PM

LGTM

This revision is now accepted and ready to land.Jan 17 2018, 2:11 PM