This is an archive of the discontinued LLVM Phabricator instance.

[ELF] - Linkerscript: Implement two argument version of ALIGN()
ClosedPublic

Authored by arichardson on Dec 16 2016, 6:12 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

arichardson retitled this revision from to [ELF] - Linkerscript: Implement two argument version of ALIGN().
arichardson updated this object.
arichardson added reviewers: ruiu, grimar, emaste.
grimar added inline comments.Dec 16 2016, 6:31 AM
ELF/LinkerScript.cpp
1745 ↗(On Diff #81748)

You do not need else after return:

if (consume(",")) {
  Expr E2 = readExpr();
  expect(")");
  return [=](uint64_t Dot) { return alignTo(E(Dot), E2(Dot)); };
}

expect(")");
return [=](uint64_t Dot) { return alignTo(Dot, E(Dot)); };

address comment

grimar edited edge metadata.Dec 16 2016, 6:46 AM

This looks good to me, but please wait for Rui's opinion.

ruiu accepted this revision.Dec 16 2016, 9:22 AM
ruiu edited edge metadata.

LGTM

This revision is now accepted and ready to land.Dec 16 2016, 9:22 AM
arichardson marked an inline comment as done.Dec 16 2016, 10:20 AM

I don't have commit access, can someone commit for me please?

This revision was automatically updated to reflect the committed changes.