[llvm] [yaml2obj] Apply output size limit to COFF (PR #209695)

Haohai Wen via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 15 01:04:15 PDT 2026


================
@@ -49,11 +49,10 @@ cl::opt<unsigned>
            cl::desc("Read specified document from input (default = 1)"),
            cl::cat(Cat));
 
-static cl::opt<uint64_t> MaxSize(
-    "max-size", cl::init(10 * 1024 * 1024),
-    cl::desc(
-        "Sets the maximum allowed output size (0 means no limit) [ELF only]"),
-    cl::cat(Cat));
+static cl::opt<uint64_t>
+    MaxSize("max-size", cl::init(10 * 1024 * 1024),
+            cl::desc("Sets the maximum allowed output size (0 means no limit)"),
+            cl::cat(Cat));
----------------
HaohaiWen wrote:

Fixed.

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


More information about the llvm-commits mailing list