[clang] [lld] [llvm] [Support] Pass tool options to parseCommandLineOptions (PR #240009)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 12 08:52:33 PST 2026


================
@@ -174,6 +174,9 @@ Makes programs 10x faster by doing Special New Thing.
 
 ### Changes to LLVM infrastructure
 
+* Removed `mc::RegisterMCTargetOptionsFlags`.
+  A tool that created it now passes `mc::getToolOptions()`, or `codegen::getToolOptions()` with `codegen::RegisterCodeGenFlags`, to `cl::parseCommandLineOptions`.
----------------
MaskRay wrote:

Yes, I have a planned follow-up to port llvm/lib/CodeGen/CommandFlags.cpp CGOPT to TableGen.

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


More information about the cfe-commits mailing list