summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/BinaryFormat/Wasm.h
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2017-07-05 20:09:26 +0000
committerSam Clegg <sbc@chromium.org>2017-07-05 20:09:26 +0000
commit8c4baa00de58e1f399cda78c5be5bd1fbb36c2b3 (patch)
treeed1d6ff62751556392443169f82729f175713642 /llvm/include/llvm/BinaryFormat/Wasm.h
parentbb83ce467876b8e6b01723f879e7395a221eaf53 (diff)
downloadbcm5719-llvm-8c4baa00de58e1f399cda78c5be5bd1fbb36c2b3.tar.gz
bcm5719-llvm-8c4baa00de58e1f399cda78c5be5bd1fbb36c2b3.zip
[WebAssembly] MC: Don't generate extra types for weak alias
Previously we were generating a void(void) function type for a weak alias. Update the weak-alias test case to catch this. Differential Revision: https://reviews.llvm.org/D34734 llvm-svn: 307194
Diffstat (limited to 'llvm/include/llvm/BinaryFormat/Wasm.h')
-rw-r--r--llvm/include/llvm/BinaryFormat/Wasm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/BinaryFormat/Wasm.h b/llvm/include/llvm/BinaryFormat/Wasm.h
index eef473b20dd..4cb373a0b70 100644
--- a/llvm/include/llvm/BinaryFormat/Wasm.h
+++ b/llvm/include/llvm/BinaryFormat/Wasm.h
@@ -107,7 +107,7 @@ struct WasmElemSegment {
struct WasmRelocation {
uint32_t Type; // The type of the relocation.
- int32_t Index; // Index into function to global index space.
+ uint32_t Index; // Index into function to global index space.
uint64_t Offset; // Offset from the start of the section.
int64_t Addend; // A value to add to the symbol.
};
OpenPOWER on IntegriCloud