LLVM 20.0.0git
|
#include "llvm/Object/COFF.h"
Public Member Functions | |
ResourceSectionRef ()=default | |
ResourceSectionRef (StringRef Ref) | |
Error | load (const COFFObjectFile *O) |
Error | load (const COFFObjectFile *O, const SectionRef &S) |
Expected< ArrayRef< UTF16 > > | getEntryNameString (const coff_resource_dir_entry &Entry) |
Expected< const coff_resource_dir_table & > | getEntrySubDir (const coff_resource_dir_entry &Entry) |
Expected< const coff_resource_data_entry & > | getEntryData (const coff_resource_dir_entry &Entry) |
Expected< const coff_resource_dir_table & > | getBaseTable () |
Expected< const coff_resource_dir_entry & > | getTableEntry (const coff_resource_dir_table &Table, uint32_t Index) |
Expected< StringRef > | getContents (const coff_resource_data_entry &Entry) |
|
default |
|
inlineexplicit |
Expected< const coff_resource_dir_table & > ResourceSectionRef::getBaseTable | ( | ) |
Definition at line 2271 of file COFFObjectFile.cpp.
Referenced by llvm::object::WindowsResourceParser::parse().
Expected< StringRef > ResourceSectionRef::getContents | ( | const coff_resource_data_entry & | Entry | ) |
Definition at line 2318 of file COFFObjectFile.cpp.
References A, llvm::Triple::aarch64, B, llvm::createStringError(), llvm::ArrayRef< T >::data(), llvm::BinaryByteStream::data(), llvm::object::COFFObjectFile::getArch(), llvm::object::COFFObjectFile::getImageBase(), llvm::object::COFFObjectFile::getSection(), llvm::object::COFFObjectFile::getSectionContents(), llvm::object::COFFObjectFile::getSymbol(), llvm::COFF::IMAGE_REL_AMD64_ADDR32NB, llvm::COFF::IMAGE_REL_ARM64_ADDR32NB, llvm::COFF::IMAGE_REL_ARM_ADDR32NB, llvm::COFF::IMAGE_REL_I386_DIR32NB, llvm::object::COFFObjectFile::isRelocatableObject(), llvm::Offset, llvm::object::parse_failed, llvm::object::ObjectFile::sections(), llvm::ArrayRef< T >::size(), Sym, llvm::Expected< T >::takeError(), llvm::Triple::thumb, llvm::Triple::x86, and llvm::Triple::x86_64.
Expected< const coff_resource_data_entry & > ResourceSectionRef::getEntryData | ( | const coff_resource_dir_entry & | Entry | ) |
Definition at line 2266 of file COFFObjectFile.cpp.
References assert().
Expected< ArrayRef< UTF16 > > ResourceSectionRef::getEntryNameString | ( | const coff_resource_dir_entry & | Entry | ) |
Definition at line 2222 of file COFFObjectFile.cpp.
Expected< const coff_resource_dir_table & > ResourceSectionRef::getEntrySubDir | ( | const coff_resource_dir_entry & | Entry | ) |
Definition at line 2260 of file COFFObjectFile.cpp.
References assert().
Expected< const coff_resource_dir_entry & > ResourceSectionRef::getTableEntry | ( | const coff_resource_dir_table & | Table, |
uint32_t | Index | ||
) |
Definition at line 2276 of file COFFObjectFile.cpp.
References llvm::createStringError(), llvm::ArrayRef< T >::data(), llvm::BinaryByteStream::data(), llvm::object::coff_resource_dir_table::NumberOfIDEntries, llvm::object::coff_resource_dir_table::NumberOfNameEntries, and llvm::object::parse_failed.
Error ResourceSectionRef::load | ( | const COFFObjectFile * | O | ) |
Definition at line 2286 of file COFFObjectFile.cpp.
References llvm::createStringError(), load, Name, and llvm::object::parse_failed.
Error ResourceSectionRef::load | ( | const COFFObjectFile * | O, |
const SectionRef & | S | ||
) |
Definition at line 2299 of file COFFObjectFile.cpp.
References A, B, llvm::object::COFFObjectFile::getCOFFSection(), llvm::object::COFFObjectFile::getRelocations(), llvm::little, llvm::ArrayRef< T >::size(), llvm::sort(), llvm::Error::success(), and llvm::Expected< T >::takeError().