[PATCH] D23598: [ELF] Linkerscript: support assignment outside SECTIONS

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 17 16:45:59 PDT 2016


phosek added a comment.

In https://reviews.llvm.org/D23598#518449, @ruiu wrote:

> I'd rather ignore errors and evaluate `.` as 0 instead of adding the second parameter to many functions.


Is the new version what you had in mind? Do you want to avoid completely ignoring errors, even if `.` is on the LHS? A different variant I've been also experimenting with is to change the `Expr` type to something like `typedef std::function<uint64_t(optional<uint64_t>)> Expr;` and when evaluating `Dot` inside `getSymbolValue`, throw an error when `.` is not available.


https://reviews.llvm.org/D23598





More information about the llvm-commits mailing list