LLVM 22.0.0git
|
Classes | |
class | DXContainerReader |
class | DXContainerWriter |
struct | Object |
struct | Part |
Typedefs | |
using | PartPred = llvm::function_ref<bool(const Part &)> |
Functions | |
Error | executeObjcopyOnBinary (const CommonConfig &Config, const DXContainerConfig &, object::DXContainerObjectFile &In, raw_ostream &Out) |
Apply the transformations described by Config and DXContainerConfig to In and writes the result into Out . | |
static Error | extractPartAsObject (StringRef PartName, StringRef OutFilename, StringRef InputFilename, const Object &Obj) |
static Error | handleArgs (const CommonConfig &Config, Object &Obj) |
using llvm::objcopy::dxbc::PartPred = llvm::function_ref<bool(const Part &)> |
Definition at line 33 of file DXContainerObject.h.
Error llvm::objcopy::dxbc::executeObjcopyOnBinary | ( | const CommonConfig & | Config, |
const DXContainerConfig & | , | ||
object::DXContainerObjectFile & | In, | ||
raw_ostream & | Out ) |
Apply the transformations described by Config
and DXContainerConfig
to In
and writes the result into Out
.
Definition at line 79 of file DXContainerObjcopy.cpp.
References assert(), llvm::objcopy::dxbc::DXContainerReader::create(), llvm::createFileError(), E(), llvm::Expected< T >::get(), handleArgs(), llvm::objcopy::CommonConfig::InputFilename, llvm::objcopy::CommonConfig::OutputFilename, llvm::Error::success(), llvm::Expected< T >::takeError(), and llvm::objcopy::dxbc::DXContainerWriter::write().
Referenced by llvm::objcopy::executeObjcopyOnBinary().
|
static |
Definition at line 22 of file DXContainerObjcopy.cpp.
References llvm::createFileError(), E(), llvm::objcopy::dxbc::Object::Header, InputFilename, P, llvm::objcopy::dxbc::Object::Parts, llvm::objcopy::dxbc::Object::recomputeHeader(), llvm::StringRef::str(), llvm::Error::success(), llvm::Write, llvm::objcopy::dxbc::DXContainerWriter::write(), and llvm::writeToOutput().
Referenced by handleArgs().
|
static |
Definition at line 45 of file DXContainerObjcopy.cpp.
References E(), llvm::objcopy::NameMatcher::empty(), extractPartAsObject(), llvm::objcopy::CommonConfig::ExtractSection, llvm::objcopy::CommonConfig::InputFilename, llvm::objcopy::NameMatcher::matches(), llvm::objcopy::CommonConfig::OnlySection, P, llvm::objcopy::dxbc::Object::recomputeHeader(), llvm::objcopy::dxbc::Object::removeParts(), llvm::Error::success(), and llvm::objcopy::CommonConfig::ToRemove.
Referenced by executeObjcopyOnBinary().