diff options
author | Nicholas Wilson <nicholas@nicholaswilson.me.uk> | 2018-03-14 15:44:45 +0000 |
---|---|---|
committer | Nicholas Wilson <nicholas@nicholaswilson.me.uk> | 2018-03-14 15:44:45 +0000 |
commit | 027b9357a8f23fdf9b0ab013ff27eaf9ec080961 (patch) | |
tree | bc31d1145f551ae972d0b2875b3b30cb8482a442 /llvm/include/llvm/BinaryFormat/Wasm.h | |
parent | bf1638daa81cca23073649ec57b21f94c8a57533 (diff) | |
download | bcm5719-llvm-027b9357a8f23fdf9b0ab013ff27eaf9ec080961.tar.gz bcm5719-llvm-027b9357a8f23fdf9b0ab013ff27eaf9ec080961.zip |
[WebAssembly] Identify COMDATs by index rather than string. NFC
This will enable an optimisation in LLD.
Differential Revision: https://reviews.llvm.org/D44343
llvm-svn: 327522
Diffstat (limited to 'llvm/include/llvm/BinaryFormat/Wasm.h')
-rw-r--r-- | llvm/include/llvm/BinaryFormat/Wasm.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/include/llvm/BinaryFormat/Wasm.h b/llvm/include/llvm/BinaryFormat/Wasm.h index eab1a546f36..e1a872c8ad5 100644 --- a/llvm/include/llvm/BinaryFormat/Wasm.h +++ b/llvm/include/llvm/BinaryFormat/Wasm.h @@ -101,7 +101,7 @@ struct WasmFunction { uint32_t CodeSectionOffset; uint32_t Size; StringRef Name; // from the "linking" or "names" section - StringRef Comdat; // from the "comdat info" section + uint32_t Comdat; // from the "comdat info" section }; struct WasmDataSegment { @@ -111,7 +111,7 @@ struct WasmDataSegment { StringRef Name; uint32_t Alignment; uint32_t Flags; - StringRef Comdat; // from the "comdat info" section + uint32_t Comdat; // from the "comdat info" section }; struct WasmElemSegment { @@ -160,6 +160,7 @@ struct WasmFunctionName { struct WasmLinkingData { std::vector<WasmInitFunc> InitFunctions; + std::vector<StringRef> Comdats; std::vector<WasmSymbolInfo> SymbolTable; }; |