//===- OptionRSTEmitter.cpp - Table Driven Command Line Option Parsing ----===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "Common/OptEmitter.h" #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/StringMap.h" #include "llvm/TableGen/Record.h" #include "llvm/TableGen/TableGenBackend.h" usingnamespacellvm; /// This tablegen backend takes an input .td file describing a list of options /// and emits a RST man page. static void EmitOptionRST(const RecordKeeper &Records, raw_ostream &OS) { … } static TableGen::Emitter::Opt X("gen-opt-rst", EmitOptionRST, "Generate option RST");