[PATCH] D45797: [WebAssebmly] Add Module name to WasmSymbol
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 25 11:29:53 PDT 2018
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rL330854: [WebAssebmly] Add Module name to WasmSymbol (authored by sbc, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D45797?vs=143039&id=143973#toc
Repository:
rL LLVM
https://reviews.llvm.org/D45797
Files:
llvm/trunk/include/llvm/BinaryFormat/Wasm.h
llvm/trunk/lib/Object/WasmObjectFile.cpp
Index: llvm/trunk/include/llvm/BinaryFormat/Wasm.h
===================================================================
--- llvm/trunk/include/llvm/BinaryFormat/Wasm.h
+++ llvm/trunk/include/llvm/BinaryFormat/Wasm.h
@@ -145,6 +145,7 @@
StringRef Name;
uint8_t Kind;
uint32_t Flags;
+ StringRef Module; // For undefined symbols the module name of the import
union {
// For function or global symbols, the index in function or global index
// space.
Index: llvm/trunk/lib/Object/WasmObjectFile.cpp
===================================================================
--- llvm/trunk/lib/Object/WasmObjectFile.cpp
+++ llvm/trunk/lib/Object/WasmObjectFile.cpp
@@ -412,6 +412,7 @@
wasm::WasmImport &Import = *ImportedFunctions[Info.ElementIndex];
FunctionType = &Signatures[Import.SigIndex];
Info.Name = Import.Field;
+ Info.Module = Import.Module;
}
break;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45797.143973.patch
Type: text/x-patch
Size: 923 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180425/f36b8161/attachment.bin>
More information about the llvm-commits
mailing list