[llvm] [PowerPC][AIX] Emit PowerPC version for XCOFF. (PR #95510)

Kai Luo via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 14 00:24:08 PDT 2024


================
@@ -490,6 +492,9 @@ class MCAssembler {
   }
   StringRef getCompilerVersion() { return CompilerVersion; }
 
+  void setCPU(StringRef TargetCPU) { CPU = TargetCPU; }
+  StringRef getCPU() { return CPU; }
----------------
bzEq wrote:

```suggestion
  StringRef getCPU() const { return CPU; }
```

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


More information about the llvm-commits mailing list