LLVM
15.0.0git
|
#include "MachOReader.h"
#include "MachOObject.h"
#include "llvm/BinaryFormat/MachO.h"
#include "llvm/Object/MachO.h"
#include "llvm/Support/Errc.h"
#include <memory>
#include "llvm/BinaryFormat/MachO.def"
Go to the source code of this file.
Macros | |
#define | HANDLE_LOAD_COMMAND(LCName, LCValue, LCStruct) |
Functions | |
template<typename SectionType > | |
static Section | constructSectionCommon (const SectionType &Sec, uint32_t Index) |
Section | constructSection (const MachO::section &Sec, uint32_t Index) |
Section | constructSection (const MachO::section_64 &Sec, uint32_t Index) |
template<typename SectionType , typename SegmentType > | |
static Expected< std::vector< std::unique_ptr< Section > > > | extractSections (const object::MachOObjectFile::LoadCommandInfo &LoadCmd, const object::MachOObjectFile &MachOObj, uint32_t &NextSectionIndex) |
template<typename nlist_t > | |
SymbolEntry | constructSymbolEntry (StringRef StrTable, const nlist_t &nlist) |
#define HANDLE_LOAD_COMMAND | ( | LCName, | |
LCValue, | |||
LCStruct | |||
) |
Section constructSection | ( | const MachO::section & | Sec, |
uint32_t | Index | ||
) |
Definition at line 49 of file MachOReader.cpp.
References constructSectionCommon().
Section constructSection | ( | const MachO::section_64 & | Sec, |
uint32_t | Index | ||
) |
Definition at line 53 of file MachOReader.cpp.
References constructSectionCommon(), llvm::MachO::section_64::reserved3, and S.
SymbolEntry constructSymbolEntry | ( | StringRef | StrTable, |
const nlist_t & | nlist | ||
) |
Definition at line 217 of file MachOReader.cpp.
References assert(), llvm::StringRef::data(), llvm::objcopy::macho::SymbolEntry::n_desc, llvm::objcopy::macho::SymbolEntry::n_sect, llvm::objcopy::macho::SymbolEntry::n_type, llvm::objcopy::macho::SymbolEntry::n_value, llvm::objcopy::macho::SymbolEntry::Name, llvm::StringRef::size(), and llvm::StringRef::str().
|
static |
Definition at line 60 of file MachOReader.cpp.
References llvm::object::MachOObjectFile::LoadCommandInfo::Ptr.