Mercurial > projects > ldc
diff gen/metadata.h @ 1344:3297edb697eb
Re-enable consistency check for fixed LLVM versions.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Mon, 11 May 2009 15:48:33 +0200 |
parents | c21a6654cce2 |
children | c88b16d4a13c |
line wrap: on
line diff
--- a/gen/metadata.h Mon May 11 11:59:22 2009 +0200 +++ b/gen/metadata.h Mon May 11 15:48:33 2009 +0200 @@ -42,9 +42,14 @@ /// The fields in the metadata node for a TypeInfo instance. /// (Its name will be TD_PREFIX ~ <Name of TypeInfo global>) enum TypeDataFields { - // TD_Confirm is disabled for now due to an LLVM bug when MDNodes contain - // globals (see http://llvm.org/PR4180 / http://llvm.org/PR4046 ) +#if LLVM_REV < 71407 + // TD_Confirm is disabled for older revisions due to an LLVM bug when + // MDNodes contain globals + // (see http://llvm.org/PR4180 / http://llvm.org/PR4046 ) TD_Confirm = -1,/// The TypeInfo this node is for. +#else + TD_Confirm, /// The TypeInfo this node is for. +#endif TD_Type, /// A value of the LLVM type corresponding to this D type