diff dmd/mars.h @ 918:a4fcc13da3cd

Changed templates and typeinfo to use linkonce linkage instead of weak linkage, this should fix inlining problems, fixing bug #197 . If problems show up, it's easy to change it back by changing the define in mars.h . I'm 95% sure this is safe, given how we handle templates.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Mon, 02 Feb 2009 01:44:51 +0100
parents 27a379f288bf
children a8cb25d478c4
line wrap: on
line diff
--- a/dmd/mars.h	Mon Feb 02 00:58:36 2009 +0100
+++ b/dmd/mars.h	Mon Feb 02 01:44:51 2009 +0100
@@ -65,6 +65,10 @@
     OSSolaris,
 };
 
+// make it easier to test new linkage types
+#define TEMPLATE_LINKAGE_TYPE   llvm::GlobalValue::LinkOnceLinkage
+#define TYPEINFO_LINKAGE_TYPE   llvm::GlobalValue::LinkOnceLinkage
+
 // Put command line switches in here
 struct Param
 {