comparison 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
comparison
equal deleted inserted replaced
1343:c21a6654cce2 1344:3297edb697eb
40 #define TD_PREFIX "llvm.ldc.typeinfo." 40 #define TD_PREFIX "llvm.ldc.typeinfo."
41 41
42 /// The fields in the metadata node for a TypeInfo instance. 42 /// The fields in the metadata node for a TypeInfo instance.
43 /// (Its name will be TD_PREFIX ~ <Name of TypeInfo global>) 43 /// (Its name will be TD_PREFIX ~ <Name of TypeInfo global>)
44 enum TypeDataFields { 44 enum TypeDataFields {
45 // TD_Confirm is disabled for now due to an LLVM bug when MDNodes contain 45 #if LLVM_REV < 71407
46 // globals (see http://llvm.org/PR4180 / http://llvm.org/PR4046 ) 46 // TD_Confirm is disabled for older revisions due to an LLVM bug when
47 // MDNodes contain globals
48 // (see http://llvm.org/PR4180 / http://llvm.org/PR4046 )
47 TD_Confirm = -1,/// The TypeInfo this node is for. 49 TD_Confirm = -1,/// The TypeInfo this node is for.
50 #else
51 TD_Confirm, /// The TypeInfo this node is for.
52 #endif
48 53
49 TD_Type, /// A value of the LLVM type corresponding to this D type 54 TD_Type, /// A value of the LLVM type corresponding to this D type
50 55
51 // Must be kept last: 56 // Must be kept last:
52 TD_NumFields /// The number of fields in TypeInfo metadata 57 TD_NumFields /// The number of fields in TypeInfo metadata