39 if (
auto *ELFBinary = dyn_cast<object::ELFObjectFileBase>(&In)) {
44 return elf::executeObjcopyOnBinary(
Config.getCommonConfig(), *
ELFConfig,
47 if (
auto *COFFBinary = dyn_cast<object::COFFObjectFile>(&In)) {
55 if (
auto *MachOBinary = dyn_cast<object::MachOObjectFile>(&In)) {
64 dyn_cast<object::MachOUniversalBinary>(&In)) {
65 return macho::executeObjcopyOnMachOUniversalBinary(
68 if (
auto *WasmBinary = dyn_cast<object::WasmObjectFile>(&In)) {
76 if (
auto *XCOFFBinary = dyn_cast<object::XCOFFObjectFile>(&In)) {
84 if (
auto *DXContainerBinary = dyn_cast<object::DXContainerObjectFile>(&In)) {
86 Config.getDXContainerConfig();
90 return dxbc::executeObjcopyOnBinary(
94 "unsupported object file format");
Lightweight error class with error context and mandatory checking.
Tagged union holding either a T or a Error.
This class implements an extremely fast bulk output stream that can only output to a stream.
LLVM_ABI Error executeObjcopyOnBinary(const CommonConfig &Config, const WasmConfig &, object::WasmObjectFile &In, raw_ostream &Out)
Apply the transformations described by Config and WasmConfig to In and writes the result into Out.
LLVM_ABI Error executeObjcopyOnBinary(const MultiFormatConfig &Config, object::Binary &In, raw_ostream &Out)
Applies the transformations described by Config to In and writes the result into Out.
This is an optimization pass for GlobalISel generic memory operations.
Error createStringError(std::error_code EC, char const *Fmt, const Ts &... Vals)
Create formatted StringError object.