llvm/llvm/lib/BinaryFormat/Dwarf.cpp

//===-- llvm/BinaryFormat/Dwarf.cpp - Dwarf Framework ------------*- 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
//
//===----------------------------------------------------------------------===//
//
// This file contains support for generic dwarf information.
//
//===----------------------------------------------------------------------===//

#include "llvm/BinaryFormat/Dwarf.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/TargetParser/Triple.h"

usingnamespacellvm;
usingnamespacedwarf;

StringRef llvm::dwarf::TagString(unsigned Tag) {}

unsigned llvm::dwarf::getTag(StringRef TagString) {}

unsigned llvm::dwarf::TagVersion(dwarf::Tag Tag) {}

unsigned llvm::dwarf::TagVendor(dwarf::Tag Tag) {}

StringRef llvm::dwarf::ChildrenString(unsigned Children) {}

StringRef llvm::dwarf::AttributeString(unsigned Attribute) {}

unsigned llvm::dwarf::AttributeVersion(dwarf::Attribute Attribute) {}

unsigned llvm::dwarf::AttributeVendor(dwarf::Attribute Attribute) {}

StringRef llvm::dwarf::FormEncodingString(unsigned Encoding) {}

unsigned llvm::dwarf::FormVersion(dwarf::Form Form) {}

unsigned llvm::dwarf::FormVendor(dwarf::Form Form) {}

StringRef llvm::dwarf::OperationEncodingString(unsigned Encoding) {}

unsigned llvm::dwarf::getOperationEncoding(StringRef OperationEncodingString) {}

static StringRef LlvmUserOperationEncodingString(unsigned Encoding) {}

static unsigned
getLlvmUserOperationEncoding(StringRef LlvmUserOperationEncodingString) {}

StringRef llvm::dwarf::SubOperationEncodingString(unsigned OpEncoding,
                                                  unsigned SubOpEncoding) {}

unsigned
llvm::dwarf::getSubOperationEncoding(unsigned OpEncoding,
                                     StringRef SubOperationEncodingString) {}

unsigned llvm::dwarf::OperationVersion(dwarf::LocationAtom Op) {}

std::optional<unsigned> llvm::dwarf::OperationOperands(dwarf::LocationAtom Op) {}

std::optional<unsigned> llvm::dwarf::OperationArity(dwarf::LocationAtom Op) {}

unsigned llvm::dwarf::OperationVendor(dwarf::LocationAtom Op) {}

StringRef llvm::dwarf::AttributeEncodingString(unsigned Encoding) {}

unsigned llvm::dwarf::getAttributeEncoding(StringRef EncodingString) {}

unsigned llvm::dwarf::AttributeEncodingVersion(dwarf::TypeKind ATE) {}

unsigned llvm::dwarf::AttributeEncodingVendor(dwarf::TypeKind ATE) {}

StringRef llvm::dwarf::DecimalSignString(unsigned Sign) {}

StringRef llvm::dwarf::EndianityString(unsigned Endian) {}

StringRef llvm::dwarf::AccessibilityString(unsigned Access) {}

StringRef llvm::dwarf::DefaultedMemberString(unsigned DefaultedEncodings) {}

StringRef llvm::dwarf::VisibilityString(unsigned Visibility) {}

StringRef llvm::dwarf::VirtualityString(unsigned Virtuality) {}

unsigned llvm::dwarf::getVirtuality(StringRef VirtualityString) {}

StringRef llvm::dwarf::LanguageString(unsigned Language) {}

unsigned llvm::dwarf::getLanguage(StringRef LanguageString) {}

unsigned llvm::dwarf::LanguageVersion(dwarf::SourceLanguage Lang) {}

unsigned llvm::dwarf::LanguageVendor(dwarf::SourceLanguage Lang) {}

std::optional<unsigned>
llvm::dwarf::LanguageLowerBound(dwarf::SourceLanguage Lang) {}

StringRef llvm::dwarf::LanguageDescription(dwarf::SourceLanguageName lname) {}

StringRef llvm::dwarf::CaseString(unsigned Case) {}

StringRef llvm::dwarf::ConventionString(unsigned CC) {}

unsigned llvm::dwarf::getCallingConvention(StringRef CCString) {}

StringRef llvm::dwarf::InlineCodeString(unsigned Code) {}

StringRef llvm::dwarf::ArrayOrderString(unsigned Order) {}

StringRef llvm::dwarf::LNStandardString(unsigned Standard) {}

StringRef llvm::dwarf::LNExtendedString(unsigned Encoding) {}

StringRef llvm::dwarf::MacinfoString(unsigned Encoding) {}

unsigned llvm::dwarf::getMacinfo(StringRef MacinfoString) {}

StringRef llvm::dwarf::MacroString(unsigned Encoding) {}

StringRef llvm::dwarf::GnuMacroString(unsigned Encoding) {}

unsigned llvm::dwarf::getMacro(StringRef MacroString) {}
StringRef llvm::dwarf::RangeListEncodingString(unsigned Encoding) {}

StringRef llvm::dwarf::LocListEncodingString(unsigned Encoding) {}

StringRef llvm::dwarf::CallFrameString(unsigned Encoding,
    Triple::ArchType Arch) {}

StringRef llvm::dwarf::ApplePropertyString(unsigned Prop) {}

StringRef llvm::dwarf::UnitTypeString(unsigned UT) {}

StringRef llvm::dwarf::AtomTypeString(unsigned AT) {}

StringRef llvm::dwarf::GDBIndexEntryKindString(GDBIndexEntryKind Kind) {}

StringRef
llvm::dwarf::GDBIndexEntryLinkageString(GDBIndexEntryLinkage Linkage) {}

StringRef llvm::dwarf::AttributeValueString(uint16_t Attr, unsigned Val) {}

StringRef llvm::dwarf::AtomValueString(uint16_t Atom, unsigned Val) {}

StringRef llvm::dwarf::IndexString(unsigned Idx) {}

std::optional<uint8_t> llvm::dwarf::getFixedFormByteSize(dwarf::Form Form,
                                                         FormParams Params) {}

bool llvm::dwarf::isValidFormForVersion(Form F, unsigned Version,
                                        bool ExtensionsOk) {}

StringRef llvm::dwarf::FormatString(DwarfFormat Format) {}

StringRef llvm::dwarf::FormatString(bool IsDWARF64) {}

StringRef llvm::dwarf::RLEString(unsigned RLE) {}

constexpr char llvm::dwarf::EnumTraits<Attribute>::Type[];
constexpr char llvm::dwarf::EnumTraits<Form>::Type[];
constexpr char llvm::dwarf::EnumTraits<Index>::Type[];
constexpr char llvm::dwarf::EnumTraits<Tag>::Type[];
constexpr char llvm::dwarf::EnumTraits<LineNumberOps>::Type[];
constexpr char llvm::dwarf::EnumTraits<LocationAtom>::Type[];