[llvm] r327203 - [WebAssembly] Object: Add accessor for wasm symbols

Sam Clegg via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 9 21:34:04 PST 2018


Author: sbc
Date: Fri Mar  9 21:34:04 2018
New Revision: 327203

URL: http://llvm.org/viewvc/llvm-project?rev=327203&view=rev
Log:
[WebAssembly] Object: Add accessor for wasm symbols

Modified:
    llvm/trunk/include/llvm/Object/Wasm.h

Modified: llvm/trunk/include/llvm/Object/Wasm.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/Wasm.h?rev=327203&r1=327202&r2=327203&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/Wasm.h (original)
+++ llvm/trunk/include/llvm/Object/Wasm.h Fri Mar  9 21:34:04 2018
@@ -135,6 +135,7 @@ public:
   ArrayRef<wasm::WasmLimits> memories() const { return Memories; }
   ArrayRef<wasm::WasmGlobal> globals() const { return Globals; }
   ArrayRef<wasm::WasmExport> exports() const { return Exports; }
+  ArrayRef<WasmSymbol> syms() const { return Symbols; }
   const wasm::WasmLinkingData& linkingData() const { return LinkingData; }
   uint32_t getNumberOfSymbols() const { return Symbols.size(); }
   ArrayRef<wasm::WasmElemSegment> elements() const { return ElemSegments; }




More information about the llvm-commits mailing list