diff options
author | Sam Clegg <sbc@chromium.org> | 2018-01-17 19:28:43 +0000 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2018-01-17 19:28:43 +0000 |
commit | 9f3fe42e19e693c59295abeb5a1d9463140ccaae (patch) | |
tree | 6efe7982cccc29f8a26b2c395c3fbc264efc9eb9 /llvm/test/tools/llvm-objdump/WebAssembly/symbol-table.test | |
parent | d122baec226e438031e56efa398f666d80a39b74 (diff) | |
download | bcm5719-llvm-9f3fe42e19e693c59295abeb5a1d9463140ccaae.tar.gz bcm5719-llvm-9f3fe42e19e693c59295abeb5a1d9463140ccaae.zip |
[WebAssembly] Remove debug names from symbol table
Get rid of DEBUG_FUNCTION_NAME symbols. When we actually debug
data, maybe we'll want somewhere to put it... but having a symbol
that just stores the name of another symbol seems odd.
It means you have multiple Symbols with the same name, one
containing the actual function and another containing the name!
Store the names in a vector on the WasmObjectFile when reading
them in. Also stash them on the WasmFunctions themselves.
The names are //not// "symbol names" or aliases or anything,
they're just the name that a debugger should show against the
function body itself. NB. The WasmObjectFile stores them so that
they can be exported in the YAML losslessly, and hence the tests
can be precise.
Enforce that the CODE section has been read in before reading
the "names" section. Requires minor adjustment to some tests.
Patch by Nicholas Wilson!
Differential Revision: https://reviews.llvm.org/D42075
llvm-svn: 322741
Diffstat (limited to 'llvm/test/tools/llvm-objdump/WebAssembly/symbol-table.test')
-rw-r--r-- | llvm/test/tools/llvm-objdump/WebAssembly/symbol-table.test | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/test/tools/llvm-objdump/WebAssembly/symbol-table.test b/llvm/test/tools/llvm-objdump/WebAssembly/symbol-table.test index 4e46d0d1714..91c227d9d5c 100644 --- a/llvm/test/tools/llvm-objdump/WebAssembly/symbol-table.test +++ b/llvm/test/tools/llvm-objdump/WebAssembly/symbol-table.test @@ -1,9 +1,6 @@ RUN: llvm-objdump -t %p/../Inputs/trivial.obj.wasm | FileCheck %s CHECK: SYMBOL TABLE: -CHECK-NEXT: 00000000 g F name puts -CHECK-NEXT: 00000001 g F name SomeOtherFunction -CHECK-NEXT: 00000002 g F name main CHECK-NEXT: 00000000 g F IMPORT puts CHECK-NEXT: 00000000 g F IMPORT SomeOtherFunction CHECK-NEXT: 00000002 g F EXPORT main |