Mercurial > projects > ldc
comparison dmd/mars.c @ 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 | b30fe7e1dbb9 |
comparison
equal
deleted
inserted
replaced
1063:40d7f9b7357f | 1064:f0b6549055ab |
---|---|
34 #include "id.h" | 34 #include "id.h" |
35 #include "cond.h" | 35 #include "cond.h" |
36 #include "expression.h" | 36 #include "expression.h" |
37 #include "lexer.h" | 37 #include "lexer.h" |
38 | 38 |
39 #include "revisions.h" | 39 #include "gen/revisions.h" |
40 | 40 |
41 Global global; | 41 Global global; |
42 | 42 |
43 Global::Global() | 43 Global::Global() |
44 { | 44 { |
59 | 59 |
60 copyright = "Copyright (c) 1999-2009 by Digital Mars and Tomas Lindquist Olsen"; | 60 copyright = "Copyright (c) 1999-2009 by Digital Mars and Tomas Lindquist Olsen"; |
61 written = "written by Walter Bright and Tomas Lindquist Olsen"; | 61 written = "written by Walter Bright and Tomas Lindquist Olsen"; |
62 version = "v1.039"; | 62 version = "v1.039"; |
63 ldc_version = LDC_REV; | 63 ldc_version = LDC_REV; |
64 llvm_version = LLVM_REV; | 64 llvm_version = LLVM_REV_STR; |
65 global.structalign = 8; | 65 global.structalign = 8; |
66 | 66 |
67 // This should only be used as a global, so the other fields are | 67 // This should only be used as a global, so the other fields are |
68 // automatically initialized to zero when the program is loaded. | 68 // automatically initialized to zero when the program is loaded. |
69 // In particular, DO NOT zero-initialize .params here (like DMD | 69 // In particular, DO NOT zero-initialize .params here (like DMD |