9#ifndef LLVM_OBJCOPY_OBJCOPY_H
10#define LLVM_OBJCOPY_OBJCOPY_H
32 StringRef OutPath, StringRef OutFormatName);
39 const object::Archive &Ar);
46 object::Binary &In, raw_ostream &Out);
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
This class implements an extremely fast bulk output stream that can only output to a stream.
LLVM_ABI StringRef getObjectFormatName(const object::Binary &B)
Returns the format name of B if it is an ObjectFile, or "" otherwise.
LLVM_ABI void printCopyMessage(StringRef InPath, StringRef InFormatName, StringRef OutPath, StringRef OutFormatName)
Prints information about the input and output files involved in a copy operation to stdout.
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.
LLVM_ABI Error executeObjcopyOnArchive(const MultiFormatConfig &Config, const object::Archive &Ar)
Applies the transformations described by Config to each member in archive Ar.
This is an optimization pass for GlobalISel generic memory operations.