Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Makes sense to me, but perhaps one additional test case needed. I'll leave @dschuff to give final approval though.
llvm/test/tools/llvm-nm/wasm/print-size.test | ||
---|---|---|
28 | Perhaps worth showing that a symbol that isn't in the data segment doesn't have a size printed too? | |
llvm/tools/llvm-nm/llvm-nm.cpp | ||
1822 | Nit: not clang-formatted. |
Otherwise this looks good.
llvm/test/tools/llvm-nm/wasm/print-size.test | ||
---|---|---|
28 | +1, showing other symbol kinds seems like a good idea as long as we're creating this test. Maybe get one BSS and a function symbol? |
I added a function symbol.
I'm not sure its worth adding a BSS symbol. They are only distinguished by the segment in which they live (name starting with .bss... otherwise there is nothing special about them. )
Do they have a size?
Actually, what is the size supposed to represent? The size in the file or the initialized size in wasm memory? I guess in other platforms its the virtual memory size, right?
So in the context of this patch they would return false in the WasmSym.isTypeData() check.
Perhaps worth showing that a symbol that isn't in the data segment doesn't have a size printed too?