[PATCH] D114429: [objcopy][NFC] Add doc comments to the executeObjcopy* functions.
Alexey Lapshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 17 02:34:38 PST 2022
avl updated this revision to Diff 409558.
avl added a comment.
rebased.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114429/new/
https://reviews.llvm.org/D114429
Files:
llvm/include/llvm/ObjCopy/COFF/COFFObjcopy.h
llvm/include/llvm/ObjCopy/ELF/ELFObjcopy.h
llvm/include/llvm/ObjCopy/MachO/MachOObjcopy.h
llvm/include/llvm/ObjCopy/wasm/WasmObjcopy.h
Index: llvm/include/llvm/ObjCopy/wasm/WasmObjcopy.h
===================================================================
--- llvm/include/llvm/ObjCopy/wasm/WasmObjcopy.h
+++ llvm/include/llvm/ObjCopy/wasm/WasmObjcopy.h
@@ -22,6 +22,9 @@
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);
Index: llvm/include/llvm/ObjCopy/MachO/MachOObjcopy.h
===================================================================
--- llvm/include/llvm/ObjCopy/MachO/MachOObjcopy.h
+++ llvm/include/llvm/ObjCopy/MachO/MachOObjcopy.h
@@ -24,10 +24,16 @@
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);
Index: llvm/include/llvm/ObjCopy/ELF/ELFObjcopy.h
===================================================================
--- llvm/include/llvm/ObjCopy/ELF/ELFObjcopy.h
+++ llvm/include/llvm/ObjCopy/ELF/ELFObjcopy.h
@@ -23,12 +23,25 @@
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);
Index: llvm/include/llvm/ObjCopy/COFF/COFFObjcopy.h
===================================================================
--- llvm/include/llvm/ObjCopy/COFF/COFFObjcopy.h
+++ llvm/include/llvm/ObjCopy/COFF/COFFObjcopy.h
@@ -23,6 +23,9 @@
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);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114429.409558.patch
Type: text/x-patch
Size: 3741 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220217/f58c1800/attachment.bin>
More information about the llvm-commits
mailing list