[PATCH] D57939: Refactor RelocVisitor and fix computation of SHT_RELA-typed relocation entries
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 9 17:35:05 PST 2019
dblaikie added a comment.
In D57939#1391531 <https://reviews.llvm.org/D57939#1391531>, @MaskRay wrote:
> `RelocVisitor.h -> RelocationResolver.cpp` there are so many differences that git doesn't consider it a rename.
Right - what I'm asking is if you could undo/not apply the file name change in this revision, so the patch/review is easier to read, possibly? (you could undo the file name change & upload a new revision for this review - then the delta might be smaller/easier to read)
> `git diff 'HEAD^':include/llvm/Object/RelocVisitor.h lib/Object/RelocationResolver.cpp`
>
> The member functions `visit*` have been made static functions. The changed indentation, changed signature probably make git think they are different chunks.
>
> F8247494: a.diff <https://reviews.llvm.org/F8247494>
>
> Anyway, we can see from below the structure of the architecture dispatch is kept.
>
> patch
> + switch (Obj.getArch()) {
> case Triple::x86_64:
> - return visitX86_64(Rel, R, Value);
> + return resolveX86_64;
> case Triple::aarch64:
> case Triple::aarch64_be:
> - return visitAarch64(Rel, R, Value);
> + return resolveAarch64;
> case Triple::bpfel:
> case Triple::bpfeb:
> - return visitBpf(Rel, R, Value);
> + return resolveBpf;
> case Triple::mips64el:
> case Triple::mips64:
> - return visitMips64(Rel, R, Value);
> + return resolveMips64;
> case Triple::ppc64le:
> case Triple::ppc64:
> - return visitPPC64(Rel, R, Value);
> + return resolvePPC64;
> case Triple::systemz:
> - return visitSystemz(Rel, R, Value);
> + return resolveSystemz;
> case Triple::sparcv9:
> - return visitSparc64(Rel, R, Value);
> + return resolveSparc64;
> case Triple::amdgcn:
> - return visitAmdgpu(Rel, R, Value);
> + return resolveAmdgpu;
> default:
> - HasError = true;
> - return 0;
> + return nullptr;
> }
> }
>
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57939/new/
https://reviews.llvm.org/D57939
More information about the llvm-commits
mailing list