comparison dmd2/mars.h @ 1064:f0b6549055ab

Make LDC work with LLVM trunk (s/LinkOnceLinkage/LinkOnceOdrLinkage/) Also moved the #defines for linkage types into a separate header instead of mars.h so we can #include revisions.h without having to rebuild the entire frontend every time we update. (I'm using revisions.h to get the LLVM revision for use in preprocessor conditionals. It should work with LLVM release 2.5, old trunk and new trunk)
author Frits van Bommel <fvbommel wxs.nl>
date Sun, 08 Mar 2009 16:13:10 +0100
parents 2667e3a145be
children e40c65bd8c5d
comparison
equal deleted inserted replaced
1063:40d7f9b7357f 1064:f0b6549055ab
63 OSWindows, 63 OSWindows,
64 OSMacOSX, 64 OSMacOSX,
65 OSFreeBSD, 65 OSFreeBSD,
66 OSSolaris, 66 OSSolaris,
67 }; 67 };
68
69 // make it easier to test new linkage types
70 #define TEMPLATE_LINKAGE_TYPE llvm::GlobalValue::LinkOnceLinkage
71 #define TYPEINFO_LINKAGE_TYPE llvm::GlobalValue::LinkOnceLinkage
72 68
73 // Put command line switches in here 69 // Put command line switches in here
74 struct Param 70 struct Param
75 { 71 {
76 bool obj; // write object file 72 bool obj; // write object file