LLVM: llvm::objcopy::dxbc Namespace Reference (original) (raw)
| 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 | dumpPartToFile (StringRef PartName, StringRef Filename, StringRef InputFilename, Object &Obj) |
| static Error | handleArgs (const CommonConfig &Config, Object &Obj) |
◆ PartPred
◆ dumpPartToFile()
Definition at line 47 of file DXContainerObjcopy.cpp.
References llvm::copy(), llvm::FileOutputBuffer::create(), llvm::createFileError(), llvm::ArrayRef< T >::drop_front(), E(), llvm::ArrayRef< T >::empty(), llvm::find_if(), InputFilename, P, llvm::ArrayRef< T >::size(), llvm::StringRef::str(), llvm::Error::success(), and llvm::Expected< T >::takeError().
Referenced by handleArgs().
◆ executeObjcopyOnBinary()
Apply the transformations described by Config and [DXContainerConfig](structllvm%5F1%5F1objcopy%5F1%5F1DXContainerConfig.html) to In and writes the result into Out.
Returns
any Error encountered whilst performing the operation.
Definition at line 121 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().
◆ extractPartAsObject()
Definition at line 24 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().
◆ handleArgs()
Definition at line 81 of file DXContainerObjcopy.cpp.
References dumpPartToFile(), llvm::objcopy::CommonConfig::DumpSection, E(), llvm::objcopy::NameMatcher::empty(), extractPartAsObject(), llvm::objcopy::CommonConfig::ExtractSection, llvm::objcopy::CommonConfig::InputFilename, llvm::objcopy::NameMatcher::matches(), llvm::objcopy::CommonConfig::OnlySection, P, llvm::Error::success(), and llvm::objcopy::CommonConfig::ToRemove.
Referenced by executeObjcopyOnBinary().