Mercurial > projects > ldc
diff dmd/mars.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 | a8cb25d478c4 |
children | f0b6549055ab |
line wrap: on
line diff
--- a/dmd/mars.h Wed Feb 25 19:30:06 2009 +0100 +++ b/dmd/mars.h Thu Feb 26 14:11:49 2009 +0100 @@ -144,7 +144,6 @@ char *exefile; // LDC stuff - const char *llvmArch; OUTPUTFLAG output_ll; OUTPUTFLAG output_bc; OUTPUTFLAG output_s; @@ -154,8 +153,9 @@ bool useInlineAsm; // target stuff - char *targetTriple; - char *dataLayout; + const char* llvmArch; + const char *targetTriple; + const char *dataLayout; }; struct Global @@ -341,7 +341,7 @@ void verror(Loc loc, const char *format, va_list); void fatal(); void err_nomem(); -void inifile(char *argv0, char *inifile); +void inifile(char *argv0, const char *inifile); void halt(); /*** Where to send error messages ***/