[WebAssembly] Object: Add accessor for wasm symbols

llvm-svn: 327203
This commit is contained in:
Sam Clegg 2018-03-10 05:34:04 +00:00
parent f27016f3de
commit 5503254f53
1 changed files with 1 additions and 0 deletions

View File

@ -135,6 +135,7 @@ public:
ArrayRef<wasm::WasmLimits> memories() const { return Memories; } ArrayRef<wasm::WasmLimits> memories() const { return Memories; }
ArrayRef<wasm::WasmGlobal> globals() const { return Globals; } ArrayRef<wasm::WasmGlobal> globals() const { return Globals; }
ArrayRef<wasm::WasmExport> exports() const { return Exports; } ArrayRef<wasm::WasmExport> exports() const { return Exports; }
ArrayRef<WasmSymbol> syms() const { return Symbols; }
const wasm::WasmLinkingData& linkingData() const { return LinkingData; } const wasm::WasmLinkingData& linkingData() const { return LinkingData; }
uint32_t getNumberOfSymbols() const { return Symbols.size(); } uint32_t getNumberOfSymbols() const { return Symbols.size(); }
ArrayRef<wasm::WasmElemSegment> elements() const { return ElemSegments; } ArrayRef<wasm::WasmElemSegment> elements() const { return ElemSegments; }