[llvm] [llvm-objcopy] Support SREC output format (PR #75874)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 15 01:20:54 PST 2024
================
@@ -390,6 +392,104 @@ class IHexWriter : public Writer {
IHexWriter(Object &Obj, raw_ostream &Out) : Writer(Obj, Out) {}
};
+using SRecLineData = SmallVector<char, 64>;
+struct SRecord {
+ uint8_t Type;
+ uint32_t Address;
+ ArrayRef<uint8_t> Data;
+ SRecLineData toString() const;
+ uint8_t getCount() const;
+ // get address size in characters
----------------
jh7370 wrote:
Comment style, here and throughout this file.
https://github.com/llvm/llvm-project/pull/75874
More information about the llvm-commits
mailing list