LLVM 22.0.0git
llvm::object::ResourceSectionRef Class Reference

#include "llvm/Object/COFF.h"

Public Member Functions

 ResourceSectionRef ()=default
 ResourceSectionRef (StringRef Ref)
LLVM_ABI Error load (const COFFObjectFile *O)
LLVM_ABI Error load (const COFFObjectFile *O, const SectionRef &S)
LLVM_ABI Expected< ArrayRef< UTF16 > > getEntryNameString (const coff_resource_dir_entry &Entry)
LLVM_ABI Expected< const coff_resource_dir_table & > getEntrySubDir (const coff_resource_dir_entry &Entry)
LLVM_ABI Expected< const coff_resource_data_entry & > getEntryData (const coff_resource_dir_entry &Entry)
LLVM_ABI Expected< const coff_resource_dir_table & > getBaseTable ()
LLVM_ABI Expected< const coff_resource_dir_entry & > getTableEntry (const coff_resource_dir_table &Table, uint32_t Index)
LLVM_ABI Expected< StringRefgetContents (const coff_resource_data_entry &Entry)

Detailed Description

Definition at line 1413 of file COFF.h.

Constructor & Destructor Documentation

◆ ResourceSectionRef() [1/2]

llvm::object::ResourceSectionRef::ResourceSectionRef ( )
default

◆ ResourceSectionRef() [2/2]

llvm::object::ResourceSectionRef::ResourceSectionRef ( StringRef Ref)
inlineexplicit

Definition at line 1416 of file COFF.h.

References llvm::little, and llvm::Ref.

Member Function Documentation

◆ getBaseTable()

Expected< const coff_resource_dir_table & > ResourceSectionRef::getBaseTable ( )

Definition at line 2271 of file COFFObjectFile.cpp.

Referenced by llvm::object::WindowsResourceParser::parse().

◆ getContents()

◆ getEntryData()

Expected< const coff_resource_data_entry & > ResourceSectionRef::getEntryData ( const coff_resource_dir_entry & Entry)

Definition at line 2266 of file COFFObjectFile.cpp.

References assert().

◆ getEntryNameString()

Expected< ArrayRef< UTF16 > > ResourceSectionRef::getEntryNameString ( const coff_resource_dir_entry & Entry)

Definition at line 2222 of file COFFObjectFile.cpp.

◆ getEntrySubDir()

Expected< const coff_resource_dir_table & > ResourceSectionRef::getEntrySubDir ( const coff_resource_dir_entry & Entry)

Definition at line 2260 of file COFFObjectFile.cpp.

References assert().

◆ getTableEntry()

◆ load() [1/2]

Error ResourceSectionRef::load ( const COFFObjectFile * O)

Definition at line 2286 of file COFFObjectFile.cpp.

References llvm::createStringError(), load, and llvm::object::parse_failed.

◆ load() [2/2]


The documentation for this class was generated from the following files: