llvm/lld/wasm/OutputSections.cpp

//===- OutputSections.cpp -------------------------------------------------===//
//
// 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 "OutputSections.h"
#include "InputChunks.h"
#include "InputElement.h"
#include "InputFiles.h"
#include "OutputSegment.h"
#include "WriterUtils.h"
#include "lld/Common/ErrorHandler.h"
#include "lld/Common/Memory.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/LEB128.h"
#include "llvm/Support/Parallel.h"

#define DEBUG_TYPE

usingnamespacellvm;
usingnamespacellvm::wasm;

namespace lld {

// Returns a string, e.g. "FUNCTION(.text)".
std::string toString(const wasm::OutputSection &sec) {}

namespace wasm {
StringRef OutputSection::getSectionName() const {}

void OutputSection::createHeader(size_t bodySize) {}

void CodeSection::finalizeContents() {}

void CodeSection::writeTo(uint8_t *buf) {}

uint32_t CodeSection::getNumRelocations() const {}

void CodeSection::writeRelocations(raw_ostream &os) const {}

void DataSection::finalizeContents() {}

void DataSection::writeTo(uint8_t *buf) {}

uint32_t DataSection::getNumRelocations() const {}

void DataSection::writeRelocations(raw_ostream &os) const {}

bool DataSection::isNeeded() const {}

// Lots of duplication here with OutputSegment::finalizeInputSegments
void CustomSection::finalizeInputSections() {}

void CustomSection::finalizeContents() {}

void CustomSection::writeTo(uint8_t *buf) {}

uint32_t CustomSection::getNumRelocations() const {}

void CustomSection::writeRelocations(raw_ostream &os) const {}

} // namespace wasm
} // namespace lld