//===- OutputSections.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 // //===----------------------------------------------------------------------===// #ifndef LLD_WASM_OUTPUT_SECTIONS_H #define LLD_WASM_OUTPUT_SECTIONS_H #include "InputChunks.h" #include "WriterUtils.h" #include "lld/Common/ErrorHandler.h" #include "lld/Common/LLVM.h" #include "llvm/ADT/DenseMap.h" namespace lld { namespace wasm { class OutputSection; } std::string toString(const wasm::OutputSection §ion); namespace wasm { class OutputSegment; class OutputSection { … }; class CodeSection : public OutputSection { … }; class DataSection : public OutputSection { … }; // Represents a custom section in the output file. Wasm custom sections are // used for storing user-defined metadata. Unlike the core sections types // they are identified by their string name. // The linker combines custom sections that have the same name by simply // concatenating them. // Note that some custom sections such as "name" and "linking" are handled // separately and are instead synthesized by the linker. class CustomSection : public OutputSection { … }; } // namespace wasm } // namespace lld #endif // LLD_WASM_OUTPUT_SECTIONS_H