summaryrefslogtreecommitdiff
path: root/llvm/include/llvm/Object/Wasm.h
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2017-05-04 19:32:43 +0000
committerSam Clegg <sbc@chromium.org>2017-05-04 19:32:43 +0000
commitd4abd73266c310c493cf5413af46e63f7618701f (patch)
tree68c2c028cc95199f5e0eb3b67a7666f00cbb6877 /llvm/include/llvm/Object/Wasm.h
parent0f03893c37ea4a9006cb44d37ffa4dd7e59d1527 (diff)
[WebAssembly] Add wasm symbol table support to llvm-objdump
Differential Revision: https://reviews.llvm.org/D32760
Diffstat (limited to 'llvm/include/llvm/Object/Wasm.h')
-rw-r--r--llvm/include/llvm/Object/Wasm.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/include/llvm/Object/Wasm.h b/llvm/include/llvm/Object/Wasm.h
index 6b6bbe252f6..4bc39d98b7a 100644
--- a/llvm/include/llvm/Object/Wasm.h
+++ b/llvm/include/llvm/Object/Wasm.h
@@ -41,10 +41,14 @@ public:
DEBUG_FUNCTION_NAME,
};
- WasmSymbol(StringRef Name, SymbolType Type) : Name(Name), Type(Type) {}
+ WasmSymbol(StringRef Name, SymbolType Type, uint32_t Section,
+ uint32_t ElementIndex)
+ : Name(Name), Type(Type), Section(Section), ElementIndex(ElementIndex) {}
StringRef Name;
SymbolType Type;
+ uint32_t Section;
+ uint32_t ElementIndex;
};
class WasmSection {