LLVM 20.0.0git
|
#include "llvm/Object/MachOUniversalWriter.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Object/Archive.h"
#include "llvm/Object/Binary.h"
#include "llvm/Object/IRObjectFile.h"
#include "llvm/Object/MachO.h"
#include "llvm/Object/MachOUniversal.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/MemoryBufferRef.h"
#include "llvm/Support/SwapByteOrder.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/TargetParser/Triple.h"
Go to the source code of this file.
Classes | |
struct | FatArchTraits< FatArchTy > |
struct | FatArchTraits< MachO::fat_arch > |
struct | FatArchTraits< MachO::fat_arch_64 > |
Typedefs | |
using | MachoCPUTy = std::pair< uint32_t, uint32_t > |
Functions | |
static uint32_t | calculateFileAlignment (const MachOObjectFile &O) |
static uint32_t | calculateAlignment (const MachOObjectFile &ObjectFile) |
static Expected< MachoCPUTy > | getMachoCPUFromTriple (Triple TT) |
static Expected< MachoCPUTy > | getMachoCPUFromTriple (StringRef TT) |
static MachoCPUTy | getMachoCPUFromObjectFile (const MachOObjectFile &O) |
template<typename FatArchTy > | |
static Expected< SmallVector< FatArchTy, 2 > > | buildFatArchList (ArrayRef< Slice > Slices) |
template<typename FatArchTy > | |
static Error | writeUniversalArchsToStream (MachO::fat_header FatHeader, ArrayRef< Slice > Slices, raw_ostream &Out) |
using MachoCPUTy = std::pair<uint32_t, uint32_t> |
Definition at line 103 of file MachOUniversalWriter.cpp.
|
static |
Definition at line 261 of file MachOUniversalWriter.cpp.
References llvm::alignTo(), llvm::createStringError(), llvm::Offset, llvm::SmallVectorTemplateBase< T, bool >::push_back(), and llvm::ArrayRef< T >::size().
|
static |
Definition at line 69 of file MachOUniversalWriter.cpp.
References calculateFileAlignment(), llvm::MachO::CPU_TYPE_ARM, llvm::MachO::CPU_TYPE_ARM64, llvm::MachO::CPU_TYPE_ARM64_32, llvm::MachO::CPU_TYPE_I386, llvm::MachO::CPU_TYPE_POWERPC, llvm::MachO::CPU_TYPE_POWERPC64, and llvm::MachO::CPU_TYPE_X86_64.
|
static |
Definition at line 37 of file MachOUniversalWriter.cpp.
References llvm::countr_zero(), llvm::object::MachOUniversalBinary::MaxSectionAlignment, and llvm::MachO::MH_OBJECT.
Referenced by calculateAlignment().
|
static |
Definition at line 120 of file MachOUniversalWriter.cpp.
Referenced by llvm::object::Slice::create().
|
static |
Definition at line 116 of file MachOUniversalWriter.cpp.
References getMachoCPUFromTriple().
|
static |
Definition at line 105 of file MachOUniversalWriter.cpp.
References llvm::MachO::getCPUSubType(), and llvm::MachO::getCPUType().
Referenced by llvm::object::Slice::create(), and getMachoCPUFromTriple().
|
static |
Definition at line 293 of file MachOUniversalWriter.cpp.
References assert(), llvm::SmallVectorTemplateCommon< T, typename >::data(), llvm::object::FatHeader, llvm::raw_ostream::flush(), llvm::MemoryBufferRef::getBufferSize(), llvm::MemoryBufferRef::getBufferStart(), llvm::sys::IsLittleEndianHost, llvm::Offset, llvm::ArrayRef< T >::size(), llvm::SmallVectorBase< Size_T >::size(), Size, llvm::Error::success(), llvm::MachO::swapStruct(), llvm::Expected< T >::takeError(), llvm::raw_ostream::write(), and llvm::raw_ostream::write_zeros().