[llvm] [SystemZ][z/OS] yaml2obj GOFF symbols (PR #75971)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 11 00:59:24 PST 2024


================
@@ -259,6 +313,14 @@ bool GOFFState::writeObject() {
   writeHeader(Doc.Header);
   if (HasError)
     return false;
+  // Iterate over all records.
+  for (auto &Rec : Doc.Records) {
+    if (auto *Sym = dyn_cast<GOFFYAML::Symbol>(Rec.get())) {
----------------
jh7370 wrote:

I think technically, according to the coding standards, this if/else shouldn't have braces.

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


More information about the llvm-commits mailing list