LLVM API Documentation
#include <MachO.h>


Definition at line 28 of file Object/MachO.h.
| llvm::object::MachOObjectFile::MachOObjectFile | ( | MemoryBuffer * | Object, |
| bool | IsLittleEndian, | ||
| bool | Is64Bits, | ||
| error_code & | ec | ||
| ) |
Definition at line 413 of file MachOObjectFile.cpp.
References llvm::object::MachOObjectFile::LoadCommandInfo::C, getFirstLoadCommandInfo(), getHeader(), getNextLoadCommandInfo(), llvm::object::getSectionPtr(), llvm::object::getSegmentLoadCommandNumSections(), I, is64Bit(), llvm::object::macho::LCT_Dysymtab, llvm::object::macho::LCT_Segment, llvm::object::macho::LCT_Segment64, llvm::object::macho::LCT_Symtab, llvm::SPII::Load, llvm::object::macho::Header::NumLoadCommands, llvm::object::MachOObjectFile::LoadCommandInfo::Ptr, llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), and llvm::object::macho::LoadCommand::Type.
| symbol_iterator llvm::object::MachOObjectFile::begin_dynamic_symbols | ( | ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 1233 of file MachOObjectFile.cpp.
References llvm::report_fatal_error().
| library_iterator llvm::object::MachOObjectFile::begin_libraries_needed | ( | ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 1254 of file MachOObjectFile.cpp.
References llvm::report_fatal_error().
| section_iterator llvm::object::MachOObjectFile::begin_sections | ( | ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 1243 of file MachOObjectFile.cpp.
References llvm::object::ObjectFile::SectionRef.
Referenced by llvm::object::printRelocationTargetName().
| symbol_iterator llvm::object::MachOObjectFile::begin_symbols | ( | ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 1208 of file MachOObjectFile.cpp.
References llvm::object::getPtr(), getSymtabLoadCommand(), llvm::object::DataRefImpl::p, llvm::object::ObjectFile::SymbolRef, and llvm::object::macho::SymtabLoadCommand::SymbolTableOffset.
Referenced by getSymbolSize(), and llvm::object::printRelocationTargetName().
Reimplemented from llvm::object::ObjectFile.
Definition at line 169 of file Object/MachO.h.
References llvm::object::Binary::isMachO().
| symbol_iterator llvm::object::MachOObjectFile::end_dynamic_symbols | ( | ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 1238 of file MachOObjectFile.cpp.
References llvm::report_fatal_error().
| library_iterator llvm::object::MachOObjectFile::end_libraries_needed | ( | ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 1259 of file MachOObjectFile.cpp.
References llvm::report_fatal_error().
| section_iterator llvm::object::MachOObjectFile::end_sections | ( | ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 1248 of file MachOObjectFile.cpp.
References llvm::object::DataRefImpl::a, llvm::object::DataRefImpl::d, llvm::object::ObjectFile::SectionRef, and llvm::SmallVectorTemplateCommon< T, typename >::size().
Referenced by getRelocationSection(), getSymbolSection(), and llvm::object::printRelocationTargetName().
| symbol_iterator llvm::object::MachOObjectFile::end_symbols | ( | ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 1218 of file MachOObjectFile.cpp.
References llvm::object::getPtr(), getSymtabLoadCommand(), is64Bit(), llvm::object::macho::SymtabLoadCommand::NumSymbolTableEntries, llvm::object::DataRefImpl::p, llvm::object::ObjectFile::SymbolRef, and llvm::object::macho::SymtabLoadCommand::SymbolTableOffset.
Referenced by getRelocationSymbol(), getSymbolSize(), and llvm::object::printRelocationTargetName().
| unsigned llvm::object::MachOObjectFile::getAnyRelocationAddress | ( | const macho::RelocationEntry & | RE | ) | const |
Definition at line 1385 of file MachOObjectFile.cpp.
References llvm::object::getPlainRelocationAddress(), llvm::object::getScatteredRelocationAddress(), and isRelocationScattered().
Referenced by getRelocationOffset().
| unsigned llvm::object::MachOObjectFile::getAnyRelocationLength | ( | const macho::RelocationEntry & | RE | ) | const |
Definition at line 1399 of file MachOObjectFile.cpp.
References llvm::object::getPlainRelocationLength(), llvm::object::getScatteredRelocationLength(), and isRelocationScattered().
Referenced by getRelocationValueString(), and llvm::RuntimeDyldMachO::processRelocationRef().
| unsigned llvm::object::MachOObjectFile::getAnyRelocationPCRel | ( | const macho::RelocationEntry & | RE | ) | const |
Definition at line 1392 of file MachOObjectFile.cpp.
References llvm::object::getPlainRelocationPCRel(), llvm::object::getScatteredRelocationPCRel(), and isRelocationScattered().
Referenced by getRelocationValueString(), and llvm::RuntimeDyldMachO::processRelocationRef().
| unsigned llvm::object::MachOObjectFile::getAnyRelocationType | ( | const macho::RelocationEntry & | RE | ) | const |
Definition at line 1406 of file MachOObjectFile.cpp.
References llvm::object::getPlainRelocationType(), llvm::object::getScatteredRelocationType(), and isRelocationScattered().
Referenced by getRelocationType(), getRelocationValueString(), and llvm::RuntimeDyldMachO::processRelocationRef().
| unsigned llvm::object::MachOObjectFile::getArch | ( | ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 1300 of file MachOObjectFile.cpp.
References llvm::Triple::arm, llvm::MachO::CPUTypeARM, llvm::MachO::CPUTypeI386, llvm::MachO::CPUTypePowerPC, llvm::MachO::CPUTypePowerPC64, llvm::MachO::CPUTypeX86_64, llvm::object::getCPUType(), llvm::Triple::ppc, llvm::Triple::ppc64, llvm::Triple::UnknownArch, llvm::Triple::x86, and llvm::Triple::x86_64.
Referenced by getRelocationHidden(), getRelocationTypeName(), and getRelocationValueString().
| uint8_t llvm::object::MachOObjectFile::getBytesInAddress | ( | ) | const [virtual] |
The number of bytes used to represent an address in this object file format.
Implements llvm::object::ObjectFile.
Definition at line 1264 of file MachOObjectFile.cpp.
References is64Bit().
| macho::DataInCodeTableEntry llvm::object::MachOObjectFile::getDataInCodeTableEntry | ( | uint32_t | DataOffset, |
| unsigned | Index | ||
| ) | const |
Definition at line 1516 of file MachOObjectFile.cpp.
References llvm::object::getPtr().
| macho::DysymtabLoadCommand llvm::object::MachOObjectFile::getDysymtabLoadCommand | ( | ) | const |
Definition at line 1526 of file MachOObjectFile.cpp.
| StringRef llvm::object::MachOObjectFile::getFileFormatName | ( | ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 1268 of file MachOObjectFile.cpp.
References llvm::MachO::CPUArchABI64, llvm::MachO::CPUTypeARM, llvm::MachO::CPUTypeI386, llvm::MachO::CPUTypePowerPC, llvm::MachO::CPUTypePowerPC64, llvm::MachO::CPUTypeX86_64, llvm::object::getCPUType(), and is64Bit().
| MachOObjectFile::LoadCommandInfo llvm::object::MachOObjectFile::getFirstLoadCommandInfo | ( | ) | const |
Definition at line 1423 of file MachOObjectFile.cpp.
References llvm::object::MachOObjectFile::LoadCommandInfo::C, llvm::object::getPtr(), llvm::object::macho::Header32Size, llvm::object::macho::Header64Size, llvm::COFF::HeaderSize, is64Bit(), llvm::SPII::Load, and llvm::object::MachOObjectFile::LoadCommandInfo::Ptr.
Referenced by MachOObjectFile().
| macho::Header llvm::object::MachOObjectFile::getHeader | ( | ) | const |
Definition at line 1498 of file MachOObjectFile.cpp.
References llvm::object::getPtr().
Referenced by llvm::object::getCPUType(), and MachOObjectFile().
| macho::Header64Ext llvm::object::MachOObjectFile::getHeader64Ext | ( | ) | const |
Definition at line 1502 of file MachOObjectFile.cpp.
References llvm::object::getPtr().
| macho::IndirectSymbolTableEntry llvm::object::MachOObjectFile::getIndirectSymbolTableEntry | ( | const macho::DysymtabLoadCommand & | DLC, |
| unsigned | Index | ||
| ) | const |
Definition at line 1507 of file MachOObjectFile.cpp.
References llvm::object::getPtr(), and llvm::object::macho::DysymtabLoadCommand::IndirectSymbolTableOffset.
| error_code llvm::object::MachOObjectFile::getLibraryNext | ( | DataRefImpl | LibData, |
| LibraryRef & | Res | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 1198 of file MachOObjectFile.cpp.
References llvm::report_fatal_error().
| error_code llvm::object::MachOObjectFile::getLibraryPath | ( | DataRefImpl | LibData, |
| StringRef & | Res | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 1203 of file MachOObjectFile.cpp.
References llvm::report_fatal_error().
| macho::LinkeditDataLoadCommand llvm::object::MachOObjectFile::getLinkeditDataLoadCommand | ( | const LoadCommandInfo & | L | ) | const |
Definition at line 1473 of file MachOObjectFile.cpp.
References llvm::object::MachOObjectFile::LoadCommandInfo::Ptr.
| macho::LinkerOptionsLoadCommand llvm::object::MachOObjectFile::getLinkerOptionsLoadCommand | ( | const LoadCommandInfo & | L | ) | const |
Definition at line 1488 of file MachOObjectFile.cpp.
References llvm::object::MachOObjectFile::LoadCommandInfo::Ptr.
| StringRef llvm::object::MachOObjectFile::getLoadName | ( | ) | const [virtual] |
For shared objects, returns the name which this object should be loaded from at runtime. This corresponds to DT_SONAME on ELF and LC_ID_DYLIB (install name) on MachO.
Implements llvm::object::ObjectFile.
Definition at line 1317 of file MachOObjectFile.cpp.
References llvm::report_fatal_error().
| MachOObjectFile::LoadCommandInfo llvm::object::MachOObjectFile::getNextLoadCommandInfo | ( | const LoadCommandInfo & | L | ) | const |
Definition at line 1433 of file MachOObjectFile.cpp.
References llvm::object::MachOObjectFile::LoadCommandInfo::C, llvm::object::MachOObjectFile::LoadCommandInfo::Ptr, and llvm::object::macho::LoadCommand::Size.
Referenced by MachOObjectFile().
| bool llvm::object::MachOObjectFile::getPlainRelocationExternal | ( | const macho::RelocationEntry & | RE | ) | const |
Definition at line 1368 of file MachOObjectFile.cpp.
References llvm::object::Binary::isLittleEndian(), and llvm::object::macho::RelocationEntry::Word1.
Referenced by getRelocationSection(), getRelocationSymbol(), llvm::object::printRelocationTargetName(), and llvm::RuntimeDyldMachO::processRelocationRef().
| unsigned llvm::object::MachOObjectFile::getPlainRelocationSymbolNum | ( | const macho::RelocationEntry & | RE | ) | const |
Definition at line 1362 of file MachOObjectFile.cpp.
References llvm::object::Binary::isLittleEndian(), and llvm::object::macho::RelocationEntry::Word1.
Referenced by getRelocationSection(), getRelocationSymbol(), and llvm::object::printRelocationTargetName().
| macho::RelocationEntry llvm::object::MachOObjectFile::getRelocation | ( | DataRefImpl | Rel | ) | const |
Definition at line 1493 of file MachOObjectFile.cpp.
References P, and llvm::object::DataRefImpl::p.
Referenced by getRelocationOffset(), getRelocationSymbol(), getRelocationType(), getRelocationValueString(), and llvm::RuntimeDyldMachO::processRelocationRef().
| error_code llvm::object::MachOObjectFile::getRelocationAddress | ( | DataRefImpl | Rel, |
| uint64_t & | Res | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 861 of file MachOObjectFile.cpp.
References llvm::report_fatal_error().
| error_code llvm::object::MachOObjectFile::getRelocationHidden | ( | DataRefImpl | Rel, |
| bool & | Result | ||
| ) | const [virtual] |
Reimplemented from llvm::object::ObjectFile.
Definition at line 1171 of file MachOObjectFile.cpp.
References llvm::object::DataRefImpl::a, llvm::Triple::arm, llvm::object::DataRefImpl::d, getArch(), getRelocationType(), llvm::object::macho::RIT_Pair, llvm::object::macho::RIT_X86_64_Subtractor, llvm::object::macho::RIT_X86_64_Unsigned, llvm::object::object_error::success, Type, llvm::Triple::x86, and llvm::Triple::x86_64.
| error_code llvm::object::MachOObjectFile::getRelocationNext | ( | DataRefImpl | Rel, |
| RelocationRef & | Res | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 851 of file MachOObjectFile.cpp.
References P, llvm::object::DataRefImpl::p, llvm::object::ObjectFile::RelocationRef, and llvm::object::object_error::success.
| error_code llvm::object::MachOObjectFile::getRelocationOffset | ( | DataRefImpl | Rel, |
| uint64_t & | Res | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 865 of file MachOObjectFile.cpp.
References getAnyRelocationAddress(), getRelocation(), and llvm::object::object_error::success.
| SectionRef llvm::object::MachOObjectFile::getRelocationSection | ( | const macho::RelocationEntry & | RE | ) | const |
Definition at line 1413 of file MachOObjectFile.cpp.
References llvm::object::DataRefImpl::a, llvm::object::DataRefImpl::d, end_sections(), getPlainRelocationExternal(), getPlainRelocationSymbolNum(), isRelocationScattered(), and llvm::object::ObjectFile::SectionRef.
Referenced by llvm::RuntimeDyldMachO::processRelocationRef().
| error_code llvm::object::MachOObjectFile::getRelocationSymbol | ( | DataRefImpl | Rel, |
| SymbolRef & | Res | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 873 of file MachOObjectFile.cpp.
References end_symbols(), getPlainRelocationExternal(), getPlainRelocationSymbolNum(), llvm::object::getPtr(), getRelocation(), getSymtabLoadCommand(), is64Bit(), llvm::object::DataRefImpl::p, llvm::object::object_error::success, llvm::object::ObjectFile::SymbolRef, and llvm::object::macho::SymtabLoadCommand::SymbolTableOffset.
| error_code llvm::object::MachOObjectFile::getRelocationType | ( | DataRefImpl | Rel, |
| uint64_t & | Res | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 893 of file MachOObjectFile.cpp.
References getAnyRelocationType(), getRelocation(), and llvm::object::object_error::success.
Referenced by getRelocationHidden(), and getRelocationTypeName().
| error_code llvm::object::MachOObjectFile::getRelocationTypeName | ( | DataRefImpl | Rel, |
| SmallVectorImpl< char > & | Result | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 901 of file MachOObjectFile.cpp.
References llvm::SmallVectorImpl< T >::append(), llvm::Triple::arm, llvm::StringRef::begin(), llvm::StringRef::end(), getArch(), getRelocationType(), llvm::Triple::ppc, llvm::object::object_error::success, llvm::Triple::UnknownArch, llvm::Triple::x86, and llvm::Triple::x86_64.
| error_code llvm::object::MachOObjectFile::getRelocationValueString | ( | DataRefImpl | Rel, |
| SmallVectorImpl< char > & | Result | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 994 of file MachOObjectFile.cpp.
References llvm::object::DataRefImpl::a, llvm::SmallVectorImpl< T >::append(), llvm::Triple::arm, llvm::object::DataRefImpl::d, llvm::raw_ostream::flush(), getAnyRelocationLength(), getAnyRelocationPCRel(), getAnyRelocationType(), getArch(), getRelocation(), llvm::object::printRelocationTargetName(), llvm::report_fatal_error(), llvm::object::macho::RIT_ARM_Half, llvm::object::macho::RIT_ARM_HalfDifference, llvm::object::macho::RIT_Difference, llvm::object::macho::RIT_Generic_LocalDifference, llvm::object::macho::RIT_Generic_TLV, llvm::object::macho::RIT_Pair, llvm::object::macho::RIT_X86_64_GOT, llvm::object::macho::RIT_X86_64_GOTLoad, llvm::object::macho::RIT_X86_64_Signed1, llvm::object::macho::RIT_X86_64_Signed2, llvm::object::macho::RIT_X86_64_Signed4, llvm::object::macho::RIT_X86_64_Subtractor, llvm::object::macho::RIT_X86_64_TLV, llvm::object::object_error::success, llvm::Triple::x86, and llvm::Triple::x86_64.
| bool llvm::object::MachOObjectFile::getScatteredRelocationScattered | ( | const macho::RelocationEntry & | RE | ) | const |
Definition at line 1375 of file MachOObjectFile.cpp.
References llvm::object::macho::RelocationEntry::Word0.
| uint32_t llvm::object::MachOObjectFile::getScatteredRelocationValue | ( | const macho::RelocationEntry & | RE | ) | const |
Definition at line 1380 of file MachOObjectFile.cpp.
References llvm::object::macho::RelocationEntry::Word1.
| macho::Section llvm::object::MachOObjectFile::getSection | ( | DataRefImpl | DRI | ) | const |
Definition at line 1440 of file MachOObjectFile.cpp.
References llvm::object::DataRefImpl::a, and llvm::object::DataRefImpl::d.
Referenced by getSectionAddress(), getSectionAlignment(), getSectionContents(), llvm::object::getSectionFlags(), getSectionRelBegin(), getSectionRelEnd(), getSectionSize(), and getSymbolFileOffset().
| macho::Section llvm::object::MachOObjectFile::getSection | ( | const LoadCommandInfo & | L, |
| unsigned | Index | ||
| ) | const |
Definition at line 1448 of file MachOObjectFile.cpp.
References llvm::object::getSectionPtr().
| macho::Section64 llvm::object::MachOObjectFile::getSection64 | ( | DataRefImpl | DRI | ) | const |
Definition at line 1444 of file MachOObjectFile.cpp.
References llvm::object::DataRefImpl::a, and llvm::object::DataRefImpl::d.
Referenced by getSectionAddress(), getSectionAlignment(), getSectionContents(), llvm::object::getSectionFlags(), getSectionRelBegin(), getSectionRelEnd(), getSectionSize(), and getSymbolFileOffset().
| macho::Section64 llvm::object::MachOObjectFile::getSection64 | ( | const LoadCommandInfo & | L, |
| unsigned | Index | ||
| ) | const |
Definition at line 1454 of file MachOObjectFile.cpp.
References llvm::object::getSectionPtr().
| error_code llvm::object::MachOObjectFile::getSectionAddress | ( | DataRefImpl | Sec, |
| uint64_t & | Res | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 680 of file MachOObjectFile.cpp.
References llvm::object::macho::Section::Address, llvm::object::macho::Section64::Address, getSection(), getSection64(), is64Bit(), and llvm::object::object_error::success.
Referenced by getSymbolSize(), and sectionContainsSymbol().
| error_code llvm::object::MachOObjectFile::getSectionAlignment | ( | DataRefImpl | Sec, |
| uint64_t & | Res | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 724 of file MachOObjectFile.cpp.
References Align(), llvm::object::macho::Section::Align, llvm::object::macho::Section64::Align, getSection(), getSection64(), is64Bit(), and llvm::object::object_error::success.
| error_code llvm::object::MachOObjectFile::getSectionContents | ( | DataRefImpl | Sec, |
| StringRef & | Res | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 705 of file MachOObjectFile.cpp.
References llvm::object::Binary::getData(), getSection(), getSection64(), is64Bit(), llvm::object::macho::Section::Offset, llvm::object::macho::Section64::Offset, llvm::object::macho::Section::Size, llvm::object::macho::Section64::Size, llvm::StringRef::substr(), and llvm::object::object_error::success.
| StringRef llvm::object::MachOObjectFile::getSectionFinalSegmentName | ( | DataRefImpl | Sec | ) | const |
Definition at line 1335 of file MachOObjectFile.cpp.
References llvm::ArrayRef< T >::data(), getSectionRawFinalSegmentName(), and llvm::object::parseSegmentOrSectionName().
| error_code llvm::object::MachOObjectFile::getSectionName | ( | DataRefImpl | Sec, |
| StringRef & | Res | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 673 of file MachOObjectFile.cpp.
References llvm::ArrayRef< T >::data(), getSectionRawName(), llvm::object::parseSegmentOrSectionName(), and llvm::object::object_error::success.
| error_code llvm::object::MachOObjectFile::getSectionNext | ( | DataRefImpl | Sec, |
| SectionRef & | Res | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 665 of file MachOObjectFile.cpp.
References llvm::object::DataRefImpl::a, llvm::object::DataRefImpl::d, llvm::object::ObjectFile::SectionRef, and llvm::object::object_error::success.
| ArrayRef< char > llvm::object::MachOObjectFile::getSectionRawFinalSegmentName | ( | DataRefImpl | Sec | ) | const |
Definition at line 1348 of file MachOObjectFile.cpp.
References llvm::object::DataRefImpl::a, llvm::object::DataRefImpl::d, and llvm::object::SectionBase::SegmentName.
Referenced by getSectionFinalSegmentName().
| ArrayRef< char > llvm::object::MachOObjectFile::getSectionRawName | ( | DataRefImpl | Sec | ) | const |
Definition at line 1341 of file MachOObjectFile.cpp.
References llvm::object::DataRefImpl::a, llvm::object::DataRefImpl::d, and llvm::object::SectionBase::Name.
Referenced by getSectionName().
| relocation_iterator llvm::object::MachOObjectFile::getSectionRelBegin | ( | DataRefImpl | Sec | ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 814 of file MachOObjectFile.cpp.
References llvm::object::getPtr(), getSection(), getSection64(), is64Bit(), llvm::object::DataRefImpl::p, llvm::object::ObjectFile::RelocationRef, llvm::object::macho::Section::RelocationTableOffset, llvm::object::macho::Section64::RelocationTableOffset, and llvm::AArch64ISD::Ret.
Referenced by getSectionRelBegin().
| relocation_iterator llvm::object::MachOObjectFile::getSectionRelBegin | ( | unsigned | Index | ) | const |
Definition at line 1322 of file MachOObjectFile.cpp.
References llvm::object::DataRefImpl::a, llvm::object::DataRefImpl::d, and getSectionRelBegin().
| relocation_iterator llvm::object::MachOObjectFile::getSectionRelEnd | ( | DataRefImpl | Sec | ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 830 of file MachOObjectFile.cpp.
References llvm::object::getPtr(), getSection(), getSection64(), is64Bit(), llvm::object::macho::Section::NumRelocationTableEntries, llvm::object::macho::Section64::NumRelocationTableEntries, P, llvm::object::DataRefImpl::p, llvm::object::ObjectFile::RelocationRef, llvm::object::macho::Section::RelocationTableOffset, llvm::object::macho::Section64::RelocationTableOffset, and llvm::AArch64ISD::Ret.
Referenced by getSectionRelEnd().
| relocation_iterator llvm::object::MachOObjectFile::getSectionRelEnd | ( | unsigned | Index | ) | const |
Definition at line 1328 of file MachOObjectFile.cpp.
References llvm::object::DataRefImpl::a, llvm::object::DataRefImpl::d, and getSectionRelEnd().
| error_code llvm::object::MachOObjectFile::getSectionSize | ( | DataRefImpl | Sec, |
| uint64_t & | Res | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 692 of file MachOObjectFile.cpp.
References getSection(), getSection64(), is64Bit(), llvm::object::macho::Section::Size, llvm::object::macho::Section64::Size, and llvm::object::object_error::success.
Referenced by getSymbolSize(), and sectionContainsSymbol().
| macho::Segment64LoadCommand llvm::object::MachOObjectFile::getSegment64LoadCommand | ( | const LoadCommandInfo & | L | ) | const |
Definition at line 1483 of file MachOObjectFile.cpp.
References llvm::object::MachOObjectFile::LoadCommandInfo::Ptr.
Referenced by llvm::object::getSegmentLoadCommandNumSections().
| macho::SegmentLoadCommand llvm::object::MachOObjectFile::getSegmentLoadCommand | ( | const LoadCommandInfo & | L | ) | const |
Definition at line 1478 of file MachOObjectFile.cpp.
References llvm::object::MachOObjectFile::LoadCommandInfo::Ptr.
Referenced by llvm::object::getSegmentLoadCommandNumSections().
| StringRef llvm::object::MachOObjectFile::getStringTableData | ( | ) | const |
Definition at line 1530 of file MachOObjectFile.cpp.
References llvm::object::Binary::getData(), getSymtabLoadCommand(), llvm::object::macho::SymtabLoadCommand::StringTableOffset, llvm::object::macho::SymtabLoadCommand::StringTableSize, and llvm::StringRef::substr().
Referenced by getSymbolName().
| macho::Symbol64TableEntry llvm::object::MachOObjectFile::getSymbol64TableEntry | ( | DataRefImpl | DRI | ) | const |
Definition at line 1467 of file MachOObjectFile.cpp.
References P, and llvm::object::DataRefImpl::p.
Referenced by getSymbolAddress().
| error_code llvm::object::MachOObjectFile::getSymbolAddress | ( | DataRefImpl | Symb, |
| uint64_t & | Res | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 464 of file MachOObjectFile.cpp.
References getSymbol64TableEntry(), getSymbolTableEntry(), is64Bit(), llvm::object::object_error::success, llvm::object::macho::SymbolTableEntry::Value, and llvm::object::macho::Symbol64TableEntry::Value.
Referenced by getSymbolFileOffset(), getSymbolFlags(), getSymbolSize(), and sectionContainsSymbol().
| error_code llvm::object::MachOObjectFile::getSymbolAlignment | ( | DataRefImpl | Symb, |
| uint32_t & | Res | ||
| ) | const [virtual] |
Reimplemented from llvm::object::ObjectFile.
Definition at line 499 of file MachOObjectFile.cpp.
References llvm::object::SymbolTableEntryBase::Flags, llvm::MachO::GET_COMM_ALIGN(), getSymbolFlags(), llvm::object::getSymbolTableEntryBase(), llvm::object::SymbolRef::SF_Common, and llvm::object::object_error::success.
| error_code llvm::object::MachOObjectFile::getSymbolFileOffset | ( | DataRefImpl | Symb, |
| uint64_t & | Res | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 477 of file MachOObjectFile.cpp.
References llvm::object::DataRefImpl::a, llvm::object::macho::Section::Address, llvm::object::macho::Section64::Address, llvm::object::DataRefImpl::d, getSection(), getSection64(), getSymbolAddress(), llvm::object::getSymbolTableEntryBase(), is64Bit(), llvm::object::macho::Section::Offset, llvm::object::macho::Section64::Offset, llvm::object::SymbolTableEntryBase::SectionIndex, and llvm::object::object_error::success.
| error_code llvm::object::MachOObjectFile::getSymbolFlags | ( | DataRefImpl | Symb, |
| uint32_t & | Res | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 608 of file MachOObjectFile.cpp.
References llvm::object::SymbolTableEntryBase::Flags, getSymbolAddress(), llvm::object::getSymbolTableEntryBase(), llvm::MachO::NListDescWeakDef, llvm::MachO::NListDescWeakRef, llvm::MachO::NlistMaskExternal, llvm::MachO::NlistMaskType, llvm::MachO::NListTypeAbsolute, llvm::MachO::NListTypeUndefined, llvm::object::SymbolRef::SF_Absolute, llvm::object::SymbolRef::SF_Common, llvm::object::SymbolRef::SF_FormatSpecific, llvm::object::SymbolRef::SF_Global, llvm::object::SymbolRef::SF_None, llvm::object::SymbolRef::SF_Undefined, llvm::object::SymbolRef::SF_Weak, llvm::object::macho::STF_StabsEntryMask, llvm::object::object_error::success, and llvm::object::SymbolTableEntryBase::Type.
Referenced by getSymbolAlignment(), and getSymbolSize().
| error_code llvm::object::MachOObjectFile::getSymbolName | ( | DataRefImpl | Symb, |
| StringRef & | Res | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 455 of file MachOObjectFile.cpp.
References llvm::StringRef::data(), getStringTableData(), llvm::object::getSymbolTableEntryBase(), llvm::object::SymbolTableEntryBase::StringIndex, and llvm::object::object_error::success.
| error_code llvm::object::MachOObjectFile::getSymbolNext | ( | DataRefImpl | Symb, |
| SymbolRef & | Res | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 445 of file MachOObjectFile.cpp.
References is64Bit(), llvm::object::DataRefImpl::p, llvm::object::object_error::success, and llvm::object::ObjectFile::SymbolRef.
| error_code llvm::object::MachOObjectFile::getSymbolNMTypeChar | ( | DataRefImpl | Symb, |
| char & | Res | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 582 of file MachOObjectFile.cpp.
References llvm::object::SymbolTableEntryBase::Flags, llvm::object::getSymbolTableEntryBase(), llvm::object::macho::STF_External, llvm::object::macho::STF_PrivateExtern, llvm::object::macho::STF_TypeMask, llvm::object::macho::STT_Absolute, llvm::object::macho::STT_Section, llvm::object::macho::STT_Undefined, llvm::object::object_error::success, and llvm::object::SymbolTableEntryBase::Type.
| error_code llvm::object::MachOObjectFile::getSymbolSection | ( | DataRefImpl | Symb, |
| section_iterator & | Res | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 644 of file MachOObjectFile.cpp.
References llvm::object::DataRefImpl::a, llvm::object::DataRefImpl::d, end_sections(), llvm::object::getSymbolTableEntryBase(), llvm::object::SymbolTableEntryBase::SectionIndex, llvm::object::ObjectFile::SectionRef, and llvm::object::object_error::success.
| error_code llvm::object::MachOObjectFile::getSymbolSize | ( | DataRefImpl | Symb, |
| uint64_t & | Res | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 512 of file MachOObjectFile.cpp.
References llvm::object::DataRefImpl::a, begin_symbols(), llvm::object::DataRefImpl::d, end_symbols(), getSectionAddress(), getSectionSize(), getSymbolAddress(), getSymbolFlags(), llvm::object::getSymbolTableEntryBase(), I, llvm::object::SymbolTableEntryBase::SectionIndex, llvm::object::SymbolRef::SF_Common, llvm::object::SymbolRef::SF_None, llvm::object::object_error::success, and llvm::object::UnknownAddressOrSize.
| macho::SymbolTableEntry llvm::object::MachOObjectFile::getSymbolTableEntry | ( | DataRefImpl | DRI | ) | const |
Definition at line 1461 of file MachOObjectFile.cpp.
References P, and llvm::object::DataRefImpl::p.
Referenced by getSymbolAddress().
| error_code llvm::object::MachOObjectFile::getSymbolType | ( | DataRefImpl | Symb, |
| SymbolRef::Type & | Res | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 558 of file MachOObjectFile.cpp.
References llvm::object::getSymbolTableEntryBase(), llvm::MachO::NlistMaskStab, llvm::MachO::NlistMaskType, llvm::MachO::NListTypeSection, llvm::MachO::NListTypeUndefined, llvm::object::SymbolRef::ST_Debug, llvm::object::SymbolRef::ST_Function, llvm::object::SymbolRef::ST_Other, llvm::object::SymbolRef::ST_Unknown, llvm::object::object_error::success, and llvm::object::SymbolTableEntryBase::Type.
Referenced by sectionContainsSymbol().
| error_code llvm::object::MachOObjectFile::getSymbolValue | ( | DataRefImpl | Symb, |
| uint64_t & | Val | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 660 of file MachOObjectFile.cpp.
References llvm::report_fatal_error().
| macho::SymtabLoadCommand llvm::object::MachOObjectFile::getSymtabLoadCommand | ( | ) | const |
Definition at line 1522 of file MachOObjectFile.cpp.
Referenced by begin_symbols(), end_symbols(), getRelocationSymbol(), and getStringTableData().
| bool llvm::object::MachOObjectFile::is64Bit | ( | ) | const |
Definition at line 1535 of file MachOObjectFile.cpp.
References llvm::object::Binary::getMachOType(), and llvm::object::Binary::getType().
Referenced by end_symbols(), getBytesInAddress(), getFileFormatName(), getFirstLoadCommandInfo(), getRelocationSymbol(), getSectionAddress(), getSectionAlignment(), getSectionContents(), llvm::object::getSectionFlags(), llvm::object::getSectionPtr(), getSectionRelBegin(), getSectionRelEnd(), getSectionSize(), llvm::object::getSegmentLoadCommandNumSections(), getSymbolAddress(), getSymbolFileOffset(), getSymbolNext(), and MachOObjectFile().
| bool llvm::object::MachOObjectFile::isRelocationScattered | ( | const macho::RelocationEntry & | RE | ) | const |
Definition at line 1355 of file MachOObjectFile.cpp.
References llvm::MachO::CPUTypeX86_64, llvm::object::getCPUType(), llvm::object::getPlainRelocationAddress(), and llvm::object::macho::RF_Scattered.
Referenced by getAnyRelocationAddress(), getAnyRelocationLength(), getAnyRelocationPCRel(), getAnyRelocationType(), getRelocationSection(), and llvm::object::printRelocationTargetName().
| error_code llvm::object::MachOObjectFile::isSectionBSS | ( | DataRefImpl | Sec, |
| bool & | Res | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 751 of file MachOObjectFile.cpp.
References llvm::object::object_error::success.
| error_code llvm::object::MachOObjectFile::isSectionData | ( | DataRefImpl | Sec, |
| bool & | Res | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 745 of file MachOObjectFile.cpp.
References llvm::object::object_error::success.
| error_code llvm::object::MachOObjectFile::isSectionReadOnlyData | ( | DataRefImpl | Sec, |
| bool & | Res | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 781 of file MachOObjectFile.cpp.
References llvm::object::object_error::success.
| error_code llvm::object::MachOObjectFile::isSectionRequiredForExecution | ( | DataRefImpl | Sec, |
| bool & | Res | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 758 of file MachOObjectFile.cpp.
References llvm::object::object_error::success.
| error_code llvm::object::MachOObjectFile::isSectionText | ( | DataRefImpl | Sec, |
| bool & | Res | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 739 of file MachOObjectFile.cpp.
References llvm::object::getSectionFlags(), llvm::object::macho::SF_PureInstructions, and llvm::object::object_error::success.
| error_code llvm::object::MachOObjectFile::isSectionVirtual | ( | DataRefImpl | Sec, |
| bool & | Res | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 765 of file MachOObjectFile.cpp.
References llvm::object::object_error::success.
| error_code llvm::object::MachOObjectFile::isSectionZeroInit | ( | DataRefImpl | Sec, |
| bool & | Res | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 773 of file MachOObjectFile.cpp.
References llvm::object::getSectionFlags(), llvm::MachO::SectionFlagMaskSectionType, llvm::MachO::SectionTypeZeroFill, llvm::MachO::SectionTypeZeroFillLarge, and llvm::object::object_error::success.
| void llvm::object::MachOObjectFile::ReadULEB128s | ( | uint64_t | Index, |
| SmallVectorImpl< uint64_t > & | Out | ||
| ) | const |
Definition at line 1540 of file MachOObjectFile.cpp.
References llvm::object::Binary::getData(), llvm::DataExtractor::getULEB128(), and llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back().
| error_code llvm::object::MachOObjectFile::sectionContainsSymbol | ( | DataRefImpl | Sec, |
| DataRefImpl | Symb, | ||
| bool & | Result | ||
| ) | const [virtual] |
Implements llvm::object::ObjectFile.
Definition at line 793 of file MachOObjectFile.cpp.
References getSectionAddress(), getSectionSize(), getSymbolAddress(), getSymbolType(), llvm::A64DB::ST, llvm::object::SymbolRef::ST_Unknown, and llvm::object::object_error::success.