[llvm-commits] [llvm] r92521 - /llvm/trunk/utils/TableGen/OptParserEmitter.cpp
Daniel Dunbar
daniel at zuster.org
Mon Jan 4 14:03:51 PST 2010
Author: ddunbar
Date: Mon Jan 4 16:03:51 2010
New Revision: 92521
URL: http://llvm.org/viewvc/llvm-project?rev=92521&view=rev
Log:
tblgen/OptParser: Use EmitSourceFileHeader.
Modified:
llvm/trunk/utils/TableGen/OptParserEmitter.cpp
Modified: llvm/trunk/utils/TableGen/OptParserEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/OptParserEmitter.cpp?rev=92521&r1=92520&r2=92521&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/OptParserEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/OptParserEmitter.cpp Mon Jan 4 16:03:51 2010
@@ -75,26 +75,10 @@
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) {
More information about the llvm-commits
mailing list