summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2017-07-07 02:01:29 +0000
committerSam Clegg <sbc@chromium.org>2017-07-07 02:01:29 +0000
commit5e3d33a781ba868a66b1baacd9613164a132127f (patch)
treeb6a32774231cf981fe764be36731fc84b8f818a3 /llvm/include
parent9cd1cdf814fe6cedf50c03ada7c834df0ba79040 (diff)
downloadbcm5719-llvm-5e3d33a781ba868a66b1baacd9613164a132127f.tar.gz
bcm5719-llvm-5e3d33a781ba868a66b1baacd9613164a132127f.zip
[WebAssembly] Support weak defined symbols
Model weakly defined symbols as symbols that are both exports and imported and marked as weak. Local references to the symbols refer to the import but the linker can resolve this to the weak export if not strong symbol is found at link time. Differential Revision: https://reviews.llvm.org/D35029 llvm-svn: 307348
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Object/Wasm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Object/Wasm.h b/llvm/include/llvm/Object/Wasm.h
index 5c8445f10f4..f1c140cf97c 100644
--- a/llvm/include/llvm/Object/Wasm.h
+++ b/llvm/include/llvm/Object/Wasm.h
@@ -61,7 +61,7 @@ public:
void print(raw_ostream &Out) const {
Out << "Name=" << Name << ", Type=" << static_cast<int>(Type)
- << ", Flags=" << Flags;
+ << ", Flags=" << Flags << " ElemIndex=" << ElementIndex;
}
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
OpenPOWER on IntegriCloud