[lld] [llvm] [RISCV] Don't expose any constructors of RISCVISAInfo publicly. (PR #98249)

Michael Maitland via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 9 18:03:36 PDT 2024


================
@@ -1251,9 +1251,8 @@ mergeAttributesSection(const SmallVector<InputSectionBase *, 0> &sections) {
     }
   }
 
-  if (hasArch) {
-    if (auto result = RISCVISAInfo::postProcessAndChecking(
-            std::make_unique<RISCVISAInfo>(xlen, exts))) {
+  if (hasArch && xlen != 0) {
----------------
michaelmaitland wrote:

It could be useful to `errorOrWarn` after `mergeArch` call.

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


More information about the llvm-commits mailing list