This is an archive of the discontinued LLVM Phabricator instance.

Rename alias definitions by both aliased and alias name
ClosedPublic

Authored by emaste on Oct 2 2015, 1:40 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

emaste updated this revision to Diff 36394.Oct 2 2015, 1:40 PM
emaste retitled this revision from to Rename alias definitions by both aliased and alias name.
emaste updated this object.
emaste added reviewers: ruiu, rafael.
emaste added a subscriber: llvm-commits.
emaste updated this revision to Diff 36395.Oct 2 2015, 1:44 PM

Third try to spell 'soname'

rafael edited edge metadata.Oct 2 2015, 1:48 PM

Why do we need both? Why not, for example

def alias_library_path ....

ruiu accepted this revision.Oct 2 2015, 1:50 PM
ruiu edited edge metadata.

LGTM with a nit.

ELF/Options.td
73 ↗(On Diff #36395)

I'd name this alias_Llibrary_path (two extra for --).

(in case we want to define two aliases, say -foo and --foo)

77 ↗(On Diff #36395)

alias_l__library

This revision is now accepted and ready to land.Oct 2 2015, 1:50 PM
emaste added a comment.Oct 2 2015, 1:58 PM

Why do we need both? Why not, for example

def alias_library_path ....

That was my original thought, but then I noticed that the existing Bdynamic... ones have both. That approach has the nice property that multiple aliases for the same option are grouped together when sorting them alphabetically.

This revision was automatically updated to reflect the committed changes.