[llvm-commits] [llvm] r70498 - /llvm/trunk/utils/TableGen/Record.h
Chris Lattner
clattner at apple.com
Thu Apr 30 10:48:01 PDT 2009
On Apr 30, 2009, at 10:35 AM, Bob Wilson wrote:
> Author: bwilson
> Date: Thu Apr 30 12:35:11 2009
> New Revision: 70498
>
> URL: http://llvm.org/viewvc/llvm-project?rev=70498&view=rev
> Log:
> Change forward declaration of MultiClass to use the "struct" keyword
> instead
> of "class", so that it matches the subsequent definition.
Hi Bob,
Actually, the preferred fix is to change all uses of MultiClass to
"class" instead of struct. We do this for better VC++ compatibility:
http://llvm.org/docs/CodingStandards.html#ci_class_struct
-Chris
>
>
> Modified:
> llvm/trunk/utils/TableGen/Record.h
>
> Modified: llvm/trunk/utils/TableGen/Record.h
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/Record.h?rev=70498&r1=70497&r2=70498&view=diff
>
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- llvm/trunk/utils/TableGen/Record.h (original)
> +++ llvm/trunk/utils/TableGen/Record.h Thu Apr 30 12:35:11 2009
> @@ -53,7 +53,7 @@
> // Other classes.
> class Record;
> class RecordVal;
> -class MultiClass;
> +struct MultiClass;
>
> //
> =
> =
> =
> ----------------------------------------------------------------------=
> ==//
> // Type Classes
>
>
> _______________________________________________
> 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