comparison gen/tollvm.cpp @ 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 32ead42679d1
children 4c8bb03e4fbc
comparison
equal deleted inserted replaced
1063:40d7f9b7357f 1064:f0b6549055ab
17 #include "gen/structs.h" 17 #include "gen/structs.h"
18 #include "gen/classes.h" 18 #include "gen/classes.h"
19 #include "gen/typeinf.h" 19 #include "gen/typeinf.h"
20 #include "gen/complex.h" 20 #include "gen/complex.h"
21 #include "gen/llvmhelpers.h" 21 #include "gen/llvmhelpers.h"
22 #include "gen/linkage.h"
22 23
23 bool DtoIsPassedByRef(Type* type) 24 bool DtoIsPassedByRef(Type* type)
24 { 25 {
25 Type* typ = type->toBasetype(); 26 Type* typ = type->toBasetype();
26 TY t = typ->ty; 27 TY t = typ->ty;