[PATCH] D56637: [llvm-objdump] - Cleanup the code. NFCI.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 14 02:42:29 PST 2019
grimar marked an inline comment as done.
grimar added inline comments.
================
Comment at: llvm-objdump.cpp:571-572
return getRelocationValueString(ELF32BE, Rel, Result);
- auto *ELF64BE = cast<ELF64BEObjectFile>(Obj);
- return getRelocationValueString(ELF64BE, Rel, Result);
+ if (auto *ELF64LE = dyn_cast<ELF64LEObjectFile>(Obj))
+ return getRelocationValueString(ELF64LE, Rel, Result);
+ return getRelocationValueString(cast<ELF64BEObjectFile>(Obj), Rel, Result);
----------------
jhenderson wrote:
> Any particular reason you've moved this one? The previous order I think was just as good.
Previous order was by endianness. Isn't it a bit strange? I think grouping by address size is a much more common way in LLVM.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56637/new/
https://reviews.llvm.org/D56637
More information about the llvm-commits
mailing list