[WebAssembly] Attach a name to globals similarly to function naming
authorNicholas Wilson <nicholas@nicholaswilson.me.uk>
Mon, 5 Mar 2018 12:16:32 +0000 (12:16 +0000)
committerNicholas Wilson <nicholas@nicholaswilson.me.uk>
Mon, 5 Mar 2018 12:16:32 +0000 (12:16 +0000)
commit959e7371180b14465e88ac4c1961f749800badb6
treede58317c5ebe0ffb6ed49fe694a1cdc43fd7898c
parentc699eaa3119bf808971a067b34532b8cf4530766
[WebAssembly] Attach a name to globals similarly to function naming

This allows LLD to print the name for an InputGlobal when encountering
an error.

Differential Revision: https://reviews.llvm.org/D44033

llvm-svn: 326691
llvm/include/llvm/BinaryFormat/Wasm.h
llvm/lib/Object/WasmObjectFile.cpp