Skip to content

Commit

Permalink
[objcopy][NFC] Add doc comments to the executeObjcopy* functions.
Browse files Browse the repository at this point in the history
Add doc comments to the executeObjcopy* functions.

Depends on D88827
  • Loading branch information
avl-llvm committed Feb 17, 2022
1 parent 37fa99e commit 889317d
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions llvm/include/llvm/ObjCopy/COFF/COFFObjcopy.h
Expand Up @@ -23,6 +23,9 @@ struct COFFConfig;

namespace coff {

/// Apply the transformations described by \p Config and \p COFFConfig
/// to \p In and writes the result into \p Out.
/// \returns any Error encountered whilst performing the operation.
Error executeObjcopyOnBinary(const CommonConfig &Config, const COFFConfig &,
object::COFFObjectFile &In, raw_ostream &Out);

Expand Down
13 changes: 13 additions & 0 deletions llvm/include/llvm/ObjCopy/ELF/ELFObjcopy.h
Expand Up @@ -23,12 +23,25 @@ struct CommonConfig;
struct ELFConfig;

namespace elf {
/// Apply the transformations described by \p Config and \p ELFConfig to
/// \p In, which must represent an IHex file, and writes the result
/// into \p Out.
/// \returns any Error encountered whilst performing the operation.
Error executeObjcopyOnIHex(const CommonConfig &Config,
const ELFConfig &ELFConfig, MemoryBuffer &In,
raw_ostream &Out);

/// Apply the transformations described by \p Config and \p ELFConfig to
/// \p In, which is treated as a raw binary input, and writes the result
/// into \p Out.
/// \returns any Error encountered whilst performing the operation.
Error executeObjcopyOnRawBinary(const CommonConfig &Config,
const ELFConfig &ELFConfig, MemoryBuffer &In,
raw_ostream &Out);

/// Apply the transformations described by \p Config and \p ELFConfig to
/// \p In and writes the result into \p Out.
/// \returns any Error encountered whilst performing the operation.
Error executeObjcopyOnBinary(const CommonConfig &Config,
const ELFConfig &ELFConfig,
object::ELFObjectFileBase &In, raw_ostream &Out);
Expand Down
6 changes: 6 additions & 0 deletions llvm/include/llvm/ObjCopy/MachO/MachOObjcopy.h
Expand Up @@ -24,10 +24,16 @@ struct MachOConfig;
class MultiFormatConfig;

namespace macho {
/// Apply the transformations described by \p Config and \p MachOConfig to
/// \p In and writes the result into \p Out.
/// \returns any Error encountered whilst performing the operation.
Error executeObjcopyOnBinary(const CommonConfig &Config,
const MachOConfig &MachOConfig,
object::MachOObjectFile &In, raw_ostream &Out);

/// Apply the transformations described by \p Config and \p MachOConfig to
/// \p In and writes the result into \p Out.
/// \returns any Error encountered whilst performing the operation.
Error executeObjcopyOnMachOUniversalBinary(
const MultiFormatConfig &Config, const object::MachOUniversalBinary &In,
raw_ostream &Out);
Expand Down
3 changes: 3 additions & 0 deletions llvm/include/llvm/ObjCopy/wasm/WasmObjcopy.h
Expand Up @@ -22,6 +22,9 @@ struct CommonConfig;
struct WasmConfig;

namespace wasm {
/// Apply the transformations described by \p Config and \p WasmConfig
/// to \p In and writes the result into \p Out.
/// \returns any Error encountered whilst performing the operation.
Error executeObjcopyOnBinary(const CommonConfig &Config, const WasmConfig &,
object::WasmObjectFile &In, raw_ostream &Out);

Expand Down

0 comments on commit 889317d

Please sign in to comment.