[PATCH] D77864: [llvm-nm/objdump/size] Enable error reporting in clients when getSymbolFlags() fails.
James Henderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 17 07:32:17 PDT 2020
jhenderson added inline comments.
================
Comment at: llvm/test/tools/llvm-nm/invalid-symbol-table-size.test:1
+## This test ensures llvm-nm will emit a helpful error message when dumping a symbol table
+## whose sh_size isn't a multiple of the symbol size (sh_size % sizeof(Elf_Sym) != 0).
----------------
will emit -> emits
(same in other tests)
================
Comment at: llvm/test/tools/llvm-size/invalid-symbol-table-size.test:5
+# RUN: yaml2obj -DBITS=32 -DSIZE=33 %s -o %t.32-bit.o
+# RUN: not llvm-size --common %t.32-bit.o 2>&1 | FileCheck -DSIZE=33 -DSYMSIZE=16 %s
+# RUN: yaml2obj -DBITS=64 -DSIZE=49 %s -o %t.64-bit.o
----------------
I think you need testing for both the sysv and berkeley output formats, as you've handled the error in two different places.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77864/new/
https://reviews.llvm.org/D77864
More information about the llvm-commits
mailing list