diff options
Diffstat (limited to 'lld/wasm/InputChunks.cpp')
-rw-r--r-- | lld/wasm/InputChunks.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lld/wasm/InputChunks.cpp b/lld/wasm/InputChunks.cpp index a1b3426888f..0cac19b3d4e 100644 --- a/lld/wasm/InputChunks.cpp +++ b/lld/wasm/InputChunks.cpp @@ -143,13 +143,3 @@ void InputFunction::setTableIndex(uint32_t Index) { assert(!hasTableIndex()); TableIndex = Index; } - -InputSection::InputSection(const WasmSection &S, ObjFile *F) - : InputChunk(F, InputChunk::Section), Section(S) { - assert(Section.Type == llvm::wasm::WASM_SEC_CUSTOM); - // TODO check LEB errors - unsigned Count; - uint64_t NameSize = llvm::decodeULEB128(Section.Content.data(), &Count); - uint32_t PayloadOffset = Count + NameSize; - Payload = Section.Content.slice(PayloadOffset); -} |