LLVM: lib/ObjCopy/ObjCopy.cpp Source File (original) (raw)

1

2

3

4

5

6

7

8

31

32using namespace llvm;

34

35

36

43

45 *ELFBinary, Out);

46 }

51

53 *COFFBinary, Out);

54 }

59

61 *MachOBinary, Out);

62 }

67 }

72

75 }

80

82 *XCOFFBinary, Out);

83 }

89

92 }

94 "unsupported object file format");

95}

Lightweight error class with error context and mandatory checking.

Tagged union holding either a T or a Error.

virtual Expected< const XCOFFConfig & > getXCOFFConfig() const =0

virtual Expected< const WasmConfig & > getWasmConfig() const =0

virtual Expected< const ELFConfig & > getELFConfig() const =0

virtual Expected< const COFFConfig & > getCOFFConfig() const =0

virtual Expected< const MachOConfig & > getMachOConfig() const =0

virtual const CommonConfig & getCommonConfig() const =0

virtual Expected< const DXContainerConfig & > getDXContainerConfig() const =0

This class implements an extremely fast bulk output stream that can only output to a stream.

LLVM_ABI Error executeObjcopyOnBinary(const CommonConfig &Config, const COFFConfig &, object::COFFObjectFile &In, raw_ostream &Out)

Apply the transformations described by Config and COFFConfig to In and writes the result into Out.

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 ...

LLVM_ABI Error executeObjcopyOnBinary(const CommonConfig &Config, const ELFConfig &ELFConfig, object::ELFObjectFileBase &In, raw_ostream &Out)

Apply the transformations described by Config and ELFConfig to In and writes the result into Out.

LLVM_ABI Error executeObjcopyOnBinary(const CommonConfig &Config, const MachOConfig &MachOConfig, object::MachOObjectFile &In, raw_ostream &Out)

Apply the transformations described by Config and MachOConfig to In and writes the result into Out.

LLVM_ABI Error executeObjcopyOnMachOUniversalBinary(const MultiFormatConfig &Config, const object::MachOUniversalBinary &In, raw_ostream &Out)

Apply the transformations described by Config and MachOConfig to In and writes the result into Out.

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.

Error executeObjcopyOnBinary(const CommonConfig &Config, const XCOFFConfig &, object::XCOFFObjectFile &In, raw_ostream &Out)

Apply the transformations described by Config and XCOFFConfig 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.

Definition ObjCopy.cpp:37

This is an optimization pass for GlobalISel generic memory operations.

decltype(auto) dyn_cast(const From &Val)

dyn_cast - Return the argument parameter cast to the specified type.

Error createStringError(std::error_code EC, char const *Fmt, const Ts &... Vals)

Create formatted StringError object.