[PATCH] D19109: [ELF] - Refactoring of end/edata/etext implementation.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 14 09:47:55 PDT 2016
ruiu added a comment.
I probably wouldn't do that because it doesn't seem to be worth to create a new type. If you don't like the repetition of `if (...) ... = Val;`, then how about defining a helper lambda for assignment like this?
auto Set = [&](DefinedRegular<ELFT> *S, uint64_t V) { If (S) S->Value = V; }
Repository:
rL LLVM
http://reviews.llvm.org/D19109
More information about the llvm-commits
mailing list