003 File Manager
Current Path:
/usr/src/contrib/llvm-project/llvm/include/llvm/DebugInfo/DWARF
usr
/
src
/
contrib
/
llvm-project
/
llvm
/
include
/
llvm
/
DebugInfo
/
DWARF
/
📁
..
📄
DWARFAbbreviationDeclaration.h
(6.28 KB)
📄
DWARFAcceleratorTable.h
(20.63 KB)
📄
DWARFAddressRange.h
(2.84 KB)
📄
DWARFAttribute.h
(1.59 KB)
📄
DWARFCompileUnit.h
(1.46 KB)
📄
DWARFContext.h
(14.72 KB)
📄
DWARFDataExtractor.h
(3.96 KB)
📄
DWARFDebugAbbrev.h
(2.24 KB)
📄
DWARFDebugAddr.h
(2.89 KB)
📄
DWARFDebugArangeSet.h
(2.36 KB)
📄
DWARFDebugAranges.h
(2.3 KB)
📄
DWARFDebugFrame.h
(11.7 KB)
📄
DWARFDebugInfoEntry.h
(2.01 KB)
📄
DWARFDebugLine.h
(15.76 KB)
📄
DWARFDebugLoc.h
(5.33 KB)
📄
DWARFDebugMacro.h
(4.61 KB)
📄
DWARFDebugPubTable.h
(2.6 KB)
📄
DWARFDebugRangeList.h
(3.03 KB)
📄
DWARFDebugRnglists.h
(2.61 KB)
📄
DWARFDie.h
(17.6 KB)
📄
DWARFExpression.h
(5.49 KB)
📄
DWARFFormValue.h
(12.23 KB)
📄
DWARFGdbIndex.h
(2.21 KB)
📄
DWARFListTable.h
(10.76 KB)
📄
DWARFLocationExpression.h
(1.69 KB)
📄
DWARFObject.h
(4.56 KB)
📄
DWARFRelocMap.h
(1.38 KB)
📄
DWARFSection.h
(689 B)
📄
DWARFTypeUnit.h
(1.68 KB)
📄
DWARFUnit.h
(20.2 KB)
📄
DWARFUnitIndex.h
(5.32 KB)
📄
DWARFVerifier.h
(13.31 KB)
Editing: DWARFObject.h
//===- DWARFObject.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 LLVM_DEBUGINFO_DWARF_DWARFOBJECT_H #define LLVM_DEBUGINFO_DWARF_DWARFOBJECT_H #include "llvm/DebugInfo/DWARF/DWARFRelocMap.h" #include "llvm/DebugInfo/DWARF/DWARFSection.h" #include "llvm/Object/ObjectFile.h" namespace llvm { // This is responsible for low level access to the object file. It // knows how to find the required sections and compute relocated // values. // The default implementations of the get<Section> methods return dummy values. // This is to allow clients that only need some of those to implement just the // ones they need. We can't use unreachable for as many cases because the parser // implementation is eager and will call some of these methods even if the // result is not used. class DWARFObject { DWARFSection Dummy; public: virtual ~DWARFObject() = default; virtual StringRef getFileName() const { llvm_unreachable("unimplemented"); } virtual const object::ObjectFile *getFile() const { return nullptr; } virtual ArrayRef<SectionName> getSectionNames() const { return {}; } virtual bool isLittleEndian() const = 0; virtual uint8_t getAddressSize() const { llvm_unreachable("unimplemented"); } virtual void forEachInfoSections(function_ref<void(const DWARFSection &)> F) const {} virtual void forEachTypesSections(function_ref<void(const DWARFSection &)> F) const {} virtual StringRef getAbbrevSection() const { return ""; } virtual const DWARFSection &getLocSection() const { return Dummy; } virtual const DWARFSection &getLoclistsSection() const { return Dummy; } virtual StringRef getArangesSection() const { return ""; } virtual const DWARFSection &getFrameSection() const { return Dummy; } virtual const DWARFSection &getEHFrameSection() const { return Dummy; } virtual const DWARFSection &getLineSection() const { return Dummy; } virtual StringRef getLineStrSection() const { return ""; } virtual StringRef getStrSection() const { return ""; } virtual const DWARFSection &getRangesSection() const { return Dummy; } virtual const DWARFSection &getRnglistsSection() const { return Dummy; } virtual const DWARFSection &getMacroSection() const { return Dummy; } virtual StringRef getMacroDWOSection() const { return ""; } virtual StringRef getMacinfoSection() const { return ""; } virtual StringRef getMacinfoDWOSection() const { return ""; } virtual const DWARFSection &getPubnamesSection() const { return Dummy; } virtual const DWARFSection &getPubtypesSection() const { return Dummy; } virtual const DWARFSection &getGnuPubnamesSection() const { return Dummy; } virtual const DWARFSection &getGnuPubtypesSection() const { return Dummy; } virtual const DWARFSection &getStrOffsetsSection() const { return Dummy; } virtual void forEachInfoDWOSections(function_ref<void(const DWARFSection &)> F) const {} virtual void forEachTypesDWOSections(function_ref<void(const DWARFSection &)> F) const {} virtual StringRef getAbbrevDWOSection() const { return ""; } virtual const DWARFSection &getLineDWOSection() const { return Dummy; } virtual const DWARFSection &getLocDWOSection() const { return Dummy; } virtual const DWARFSection &getLoclistsDWOSection() const { return Dummy; } virtual StringRef getStrDWOSection() const { return ""; } virtual const DWARFSection &getStrOffsetsDWOSection() const { return Dummy; } virtual const DWARFSection &getRangesDWOSection() const { return Dummy; } virtual const DWARFSection &getRnglistsDWOSection() const { return Dummy; } virtual const DWARFSection &getAddrSection() const { return Dummy; } virtual const DWARFSection &getAppleNamesSection() const { return Dummy; } virtual const DWARFSection &getAppleTypesSection() const { return Dummy; } virtual const DWARFSection &getAppleNamespacesSection() const { return Dummy; } virtual const DWARFSection &getNamesSection() const { return Dummy; } virtual const DWARFSection &getAppleObjCSection() const { return Dummy; } virtual StringRef getCUIndexSection() const { return ""; } virtual StringRef getGdbIndexSection() const { return ""; } virtual StringRef getTUIndexSection() const { return ""; } virtual Optional<RelocAddrEntry> find(const DWARFSection &Sec, uint64_t Pos) const = 0; }; } // namespace llvm #endif
Upload File
Create Folder