[llvm] [XCOFF] Add compiler version to an auxiliary symbol table entry (PR #80162)

via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 5 09:05:29 PST 2024


================
@@ -486,6 +488,15 @@ class MCAssembler {
     FileNames.emplace_back(std::string(FileName), Symbols.size());
   }
 
+  bool setCompilerVersion(std::string CompilerVers) {
+    if (CompilerVersion.empty()) {
+      CompilerVersion = CompilerVers;
+      return true;
+    }
+    return false;
+  }
----------------
stephenpeckham wrote:

I left the empty check, even though it's not strictly necessary. There can be multiple file symbols, but only a single compiler version.

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


More information about the llvm-commits mailing list