[llvm-commits] [llvm] r92521 - /llvm/trunk/utils/TableGen/OptParserEmitter.cpp
Chris Lattner
clattner at apple.com
Mon Jan 4 14:11:52 PST 2010
On Jan 4, 2010, at 2:03 PM, Daniel Dunbar wrote:
> 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.
yay, thanks :)
-Chris
>
> 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) {
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list