mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
tblgen/OptParser: Use EmitSourceFileHeader.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92521 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
083b7ffb4d
commit
5ddcd6be8f
@ -75,26 +75,10 @@ void OptParserEmitter::run(raw_ostream &OS) {
|
|||||||
Records.getAllDerivedDefinitions("OptionGroup");
|
Records.getAllDerivedDefinitions("OptionGroup");
|
||||||
std::vector<Record*> Opts = Records.getAllDerivedDefinitions("Option");
|
std::vector<Record*> Opts = Records.getAllDerivedDefinitions("Option");
|
||||||
|
|
||||||
if (GenDefs) {
|
if (GenDefs)
|
||||||
OS << "\
|
EmitSourceFileHeader("Option Parsing Definitions", OS);
|
||||||
//=== TableGen'erated File - Option Parsing Definitions ---------*- C++ -*-===//\n \
|
else
|
||||||
//\n\
|
EmitSourceFileHeader("Option Parsing Table", OS);
|
||||||
// Option Parsing Definitions\n\
|
|
||||||
//\n\
|
|
||||||
// Automatically generated file, do not edit!\n\
|
|
||||||
//\n\
|
|
||||||
//===----------------------------------------------------------------------===//\n";
|
|
||||||
} else {
|
|
||||||
OS << "\
|
|
||||||
//=== TableGen'erated File - Option Parsing Table ---------------*- C++ -*-===//\n \
|
|
||||||
//\n\
|
|
||||||
// Option Parsing Definitions\n\
|
|
||||||
//\n\
|
|
||||||
// Automatically generated file, do not edit!\n\
|
|
||||||
//\n\
|
|
||||||
//===----------------------------------------------------------------------===//\n";
|
|
||||||
}
|
|
||||||
OS << "\n";
|
|
||||||
|
|
||||||
array_pod_sort(Opts.begin(), Opts.end(), CompareOptionRecords);
|
array_pod_sort(Opts.begin(), Opts.end(), CompareOptionRecords);
|
||||||
if (GenDefs) {
|
if (GenDefs) {
|
||||||
|
Loading…
Reference in New Issue
Block a user