llvm/lld/MachO/Symbols.cpp

//===- Symbols.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 "Symbols.h"
#include "InputFiles.h"
#include "SyntheticSections.h"
#include "llvm/Demangle/Demangle.h"

usingnamespacellvm;
usingnamespacelld;
usingnamespacelld::macho;

static_assert;

// The Microsoft ABI doesn't support using parent class tail padding for child
// members, hence the _MSC_VER check.
#if !defined(_MSC_VER)
static_assert;
#endif

static_assert;

// Returns a symbol name for an error message.
static std::string maybeDemangleSymbol(StringRef symName) {}

std::string lld::toString(const Symbol &sym) {}

std::string lld::toMachOString(const object::Archive::Symbol &b) {}

uint64_t Symbol::getStubVA() const {}
uint64_t Symbol::getLazyPtrVA() const {}
uint64_t Symbol::getGotVA() const {}
uint64_t Symbol::getTlvVA() const {}

Defined::Defined(StringRef name, InputFile *file, InputSection *isec,
                 uint64_t value, uint64_t size, bool isWeakDef, bool isExternal,
                 bool isPrivateExtern, bool includeInSymtab,
                 bool isReferencedDynamically, bool noDeadStrip,
                 bool canOverrideWeakDef, bool isWeakDefCanBeHidden,
                 bool interposable)
    :{}

bool Defined::isTlv() const {}

uint64_t Defined::getVA() const {}

ObjFile *Defined::getObjectFile() const {}

std::string Defined::getSourceLocation() {}

// Get the canonical InputSection of the symbol.
InputSection *Defined::isec() const {}

// Get the canonical unwind entry of the symbol.
ConcatInputSection *Defined::unwindEntry() const {}

uint64_t DylibSymbol::getVA() const {}

void LazyArchive::fetchArchiveMember() {}