[llvm] [obj2yaml] Add ability to dump GOFF header records (PR #90871)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri May 3 00:20:24 PDT 2024


================
@@ -24,6 +25,94 @@
 using namespace llvm::object;
 using namespace llvm;
 
+namespace {
+// Return the type of the record.
+GOFF::RecordType getRecordType(const uint8_t *PhysicalRecord) {
----------------
MaskRay wrote:

nit: prefer `static` for functions. See https://llvm.org/docs/CodingStandards.html#anonymous-namespaces

https://github.com/llvm/llvm-project/pull/90871


More information about the llvm-commits mailing list