//===- OutputSegment.h -----------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "OutputSegment.h" #include "InputChunks.h" #include "lld/Common/Memory.h" #define DEBUG_TYPE … usingnamespacellvm; usingnamespacellvm::wasm; namespace lld::wasm { void OutputSegment::addInputSegment(InputChunk *inSeg) { … } // This function scans over the input segments. // // It removes MergeInputChunks from the input section array and adds // new synthetic sections at the location of the first input section // that it replaces. It then finalizes each synthetic section in order // to compute an output offset for each piece of each input section. void OutputSegment::finalizeInputSegments() { … } } // namespace lld::wasm