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:
Daniel Dunbar 2010-01-04 22:03:51 +00:00
parent 083b7ffb4d
commit 5ddcd6be8f

View File

@ -75,26 +75,10 @@ void OptParserEmitter::run(raw_ostream &OS) {
Records.getAllDerivedDefinitions("OptionGroup");
std::vector<Record*> Opts = Records.getAllDerivedDefinitions("Option");
if (GenDefs) {
OS << "\
//=== TableGen'erated File - Option Parsing Definitions ---------*- C++ -*-===//\n \
//\n\
// 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";
if (GenDefs)
EmitSourceFileHeader("Option Parsing Definitions", OS);
else
EmitSourceFileHeader("Option Parsing Table", OS);
array_pod_sort(Opts.begin(), Opts.end(), CompareOptionRecords);
if (GenDefs) {