[PATCH] D82549: [AIX][XCOFF] parsing xcoff object file auxiliary header
Digger via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 14 07:50:19 PDT 2020
DiggerLin marked 6 inline comments as done.
DiggerLin added inline comments.
================
Comment at: llvm/tools/llvm-readobj/XCOFFDumper.cpp:548
+ AuxiSize) \
+ W.print##H(S, AuxHeader->T)
+
----------------
hubert.reinterpretcast wrote:
> Please indent the body of the `if`. Also, if `AuxiSize` is greater than the offset of the field but less than the offset past-the-end of the field, then we have a partial field and should probably produce some warning about it (in case the producer of the input file has behaviour we did not expect). I would also suggest to output the raw data in that case.
I agree your suggestion that "we have a partial field and should probably produce some warning about it " . If I implement the suggestion in the the patch, I also need to add test case to test it. It maybe cause the patch too big, I think it maybe better to put the suggestion in other patch.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82549/new/
https://reviews.llvm.org/D82549
More information about the llvm-commits
mailing list