Mercurial > projects > ldc
comparison dmd/cond.h @ 988:2667e3a145be
- Fixed LLVM style CL args for D2.
- Moved main() into its own file gen/main.cpp
- Fixed basic cross compilation
- removed the option for setting OS
- added support for llc's mattr, mcpu and mtriple switches
- added basic ABI abstraction for return value rewrites, it's not perfect and will probably be completely rewritten once I get to handling parameter rewrites as well.
- x86-64 extern(C) abi for cfloat returns now match (llvm-)gcc.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Thu, 26 Feb 2009 14:11:49 +0100 |
parents | c53b6e3fe49a |
children | b30fe7e1dbb9 |
comparison
equal
deleted
inserted
replaced
987:73ff89728d85 | 988:2667e3a145be |
---|---|
53 }; | 53 }; |
54 | 54 |
55 struct DebugCondition : DVCondition | 55 struct DebugCondition : DVCondition |
56 { | 56 { |
57 static void setGlobalLevel(unsigned level); | 57 static void setGlobalLevel(unsigned level); |
58 static void addGlobalIdent(char *ident); | 58 static void addGlobalIdent(const char *ident); |
59 static void addPredefinedGlobalIdent(char *ident); | 59 static void addPredefinedGlobalIdent(const char *ident); |
60 | 60 |
61 DebugCondition(Module *mod, unsigned level, Identifier *ident); | 61 DebugCondition(Module *mod, unsigned level, Identifier *ident); |
62 | 62 |
63 int include(Scope *sc, ScopeDsymbol *s); | 63 int include(Scope *sc, ScopeDsymbol *s); |
64 void toCBuffer(OutBuffer *buf, HdrGenState *hgs); | 64 void toCBuffer(OutBuffer *buf, HdrGenState *hgs); |
65 }; | 65 }; |
66 | 66 |
67 struct VersionCondition : DVCondition | 67 struct VersionCondition : DVCondition |
68 { | 68 { |
69 static void setGlobalLevel(unsigned level); | 69 static void setGlobalLevel(unsigned level); |
70 static void checkPredefined(Loc loc, char *ident); | 70 static void checkPredefined(Loc loc, const char *ident); |
71 static void addGlobalIdent(char *ident); | 71 static void addGlobalIdent(const char *ident); |
72 static void addPredefinedGlobalIdent(char *ident); | 72 static void addPredefinedGlobalIdent(const char *ident); |
73 | 73 |
74 VersionCondition(Module *mod, unsigned level, Identifier *ident); | 74 VersionCondition(Module *mod, unsigned level, Identifier *ident); |
75 | 75 |
76 int include(Scope *sc, ScopeDsymbol *s); | 76 int include(Scope *sc, ScopeDsymbol *s); |
77 void toCBuffer(OutBuffer *buf, HdrGenState *hgs); | 77 void toCBuffer(OutBuffer *buf, HdrGenState *hgs); |