[PATCH] D35651: [ELF] Align the value if needed when computing the expression
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 19 20:59:53 PDT 2017
phosek added a comment.
In https://reviews.llvm.org/D35651#815595, @ruiu wrote:
> I think what you were looking for is ExprValue::getValue().
That's what I tried initially, but I don't think it's correct. The problem is that if I use `{A.Sec, A.ForceAbsolute, A.getValue() + B.getValue(), A.Loc}`, the section offset (if `A.Sec != nullptr`) will get applied twice. If I use `A.getValue() + B.getValue()` the resulting expression will be absolute and not section relative as it should be if `A` is.
Repository:
rL LLVM
https://reviews.llvm.org/D35651
More information about the llvm-commits
mailing list