This is an archive of the discontinued LLVM Phabricator instance.

[ELF] - handle of command line options incompatible with -r
ClosedPublic

Authored by grimar on Mar 1 2016, 2:01 AM.

Details

Diff Detail

Repository
rL LLVM

Event Timeline

grimar updated this revision to Diff 49465.Mar 1 2016, 2:01 AM
grimar retitled this revision from to [ELF] - handle of command line options incompatible with -r.
grimar updated this object.
grimar added reviewers: ruiu, rafael.
grimar added subscribers: llvm-commits, grimar.
ruiu accepted this revision.Mar 1 2016, 11:14 AM
ruiu edited edge metadata.

LGTM

ELF/Driver.cpp
144 ↗(On Diff #49465)

I'd use early return here.

if (Config->Relocatable)
  return;
if (Config->Shared)
  ....
test/ELF/relocatable-errors.s
1–2 ↗(On Diff #49465)

Please add this to driver.test instead of to a new file.

This revision is now accepted and ready to land.Mar 1 2016, 11:14 AM
This revision was automatically updated to reflect the committed changes.
grimar added inline comments.Mar 1 2016, 11:43 AM
ELF/Driver.cpp
144 ↗(On Diff #49465)

Done.

test/ELF/relocatable-errors.s
1–2 ↗(On Diff #49465)

Done.