diff 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
line wrap: on
line diff
--- a/dmd/cond.h	Wed Feb 25 19:30:06 2009 +0100
+++ b/dmd/cond.h	Thu Feb 26 14:11:49 2009 +0100
@@ -55,8 +55,8 @@
 struct DebugCondition : DVCondition
 {
     static void setGlobalLevel(unsigned level);
-    static void addGlobalIdent(char *ident);
-    static void addPredefinedGlobalIdent(char *ident);
+    static void addGlobalIdent(const char *ident);
+    static void addPredefinedGlobalIdent(const char *ident);
 
     DebugCondition(Module *mod, unsigned level, Identifier *ident);
 
@@ -67,9 +67,9 @@
 struct VersionCondition : DVCondition
 {
     static void setGlobalLevel(unsigned level);
-    static void checkPredefined(Loc loc, char *ident);
-    static void addGlobalIdent(char *ident);
-    static void addPredefinedGlobalIdent(char *ident);
+    static void checkPredefined(Loc loc, const char *ident);
+    static void addGlobalIdent(const char *ident);
+    static void addPredefinedGlobalIdent(const char *ident);
 
     VersionCondition(Module *mod, unsigned level, Identifier *ident);