[lld] [ELF] Postpone more linker script errors (PR #96361)

Daniel Thornburgh via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 21 16:02:27 PDT 2024


================
@@ -375,7 +380,7 @@ class LinkerScript final {
   bool seenDataAlign = false;
   bool seenRelroEnd = false;
   bool errorOnMissingSection = false;
-  std::string backwardDotErr;
+  SmallVector<std::string, 0> pendingErrors;
----------------
mysterymath wrote:

nit: `recordedError` is about the same length as `pendingError` and has similar information content, but the association with `recordError` is more obvious and greppable. `deferError` and `deferredErrors` have similar properties.

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


More information about the llvm-commits mailing list