This is an archive of the discontinued LLVM Phabricator instance.

Handle numbers followed by ":" in linker scripts
ClosedPublic

Authored by dmikulin on Feb 1 2017, 5:03 PM.

Details

Summary

This is a fix for Bugzilla 31813.
The problem is that the tokenizer does not create a separate token for ":" unless there's white space before it. Changed it to always create a token for ":" and reworked some logic that relied on ":" being attached to some tokens like "global:" and "local:".

Diff Detail

Event Timeline

dmikulin created this revision.Feb 1 2017, 5:03 PM
ruiu accepted this revision.Feb 1 2017, 5:18 PM

If there's a bare token containing ":", this patch regress, but I believe that is unlikely. LGTM.

This revision is now accepted and ready to land.Feb 1 2017, 5:18 PM
davide accepted this revision.Feb 1 2017, 5:21 PM

LGTM

dmikulin closed this revision.Feb 3 2017, 8:48 AM

Committed as r294006