[llvm] [GOFF] Refactor writing GOFF records (PR #93855)

Kai Nacke via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 21 09:51:24 PDT 2024


================
@@ -181,11 +184,13 @@ void GOFFState::writeHeader(GOFFYAML::ModuleHeader &ModHdr) {
     LR << *ModHdr.Properties; // Module properties.
 }
 
-void GOFFState::writeEnd(GOFFYAML::EndOfModule &EndMod) {
+void GOFFState::writeEnd(const GOFFYAML::EndOfModule &EndMod) {
+  // See https://www.ibm.com/docs/en/zos/3.1.0?topic=formats-end-module-record.
   SmallString<16> EntryName;
   if (std::error_code EC =
           ConverterEBCDIC::convertToEBCDIC(EndMod.EntryName, EntryName))
-    reportError("Conversion error on " + EndMod.EntryName);
+    reportError("conversion to EBCDIC 1047 failed on '" + EndMod.EntryName +
+                "'");
----------------
redstar wrote:

Changed, thanks.

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


More information about the llvm-commits mailing list