diff gen/typinf.cpp @ 1367:8026319762be

Merged DMD 1.045 !!!
author Tomas Lindquist Olsen <tomas.l.olsen gmail com>
date Sat, 16 May 2009 22:21:31 +0200
parents 46f6365a50d7
children e630ff79e10d
line wrap: on
line diff
--- a/gen/typinf.cpp	Sat May 16 18:37:16 2009 +0200
+++ b/gen/typinf.cpp	Sat May 16 22:21:31 2009 +0200
@@ -253,6 +253,20 @@
 #endif
 }
 
+int TypeClass::builtinTypeInfo()
+{
+    /* This is statically put out with the ClassInfo, so
+     * claim it is built in so it isn't regenerated by each module.
+     */
+#if IN_DMD
+    return 1;
+#elif IN_LLVM
+    // FIXME if I enable this, the way LDC does typeinfo will cause a bunch
+    // of linker errors to missing class typeinfo definitions.
+    return 0;
+#endif
+}
+
 /* ========================================================================= */
 
 //////////////////////////////////////////////////////////////////////////////