[PATCH] D40338: Use lambdas to store lazy-evaluated .dynamic entries.

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 22 05:31:18 PST 2017


jhenderson added a comment.

It occurs to me that now that https://reviews.llvm.org/D39493 has landed, this change will need to include the intended change to using a lambda for the DT_MIPS_LOCAL_GOTNO entry. I used the following code to add it locally, in place of the current addInt():

  Entries.push_back({DT_MIPS_LOCAL_GOTNO,
                     [=] { return InX::MipsGot->getLocalEntriesNum(); }});

I'm still happy for this to go in with that change, or a similar one.


https://reviews.llvm.org/D40338





More information about the llvm-commits mailing list