comparison dmd2/attrib.c @ 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 7d16ce7ad19d
children 638d16625da2
comparison
equal deleted inserted replaced
987:73ff89728d85 988:2667e3a145be
30 #include "module.h" 30 #include "module.h"
31 #include "parse.h" 31 #include "parse.h"
32 #include "template.h" 32 #include "template.h"
33 33
34 #include "../gen/enums.h" 34 #include "../gen/enums.h"
35
36
37 #include "llvm/Support/CommandLine.h"
38
39 static llvm::cl::opt<bool> ignoreUnsupportedPragmas("ignore",
40 llvm::cl::desc("Ignore unsupported pragmas"),
41 llvm::cl::ZeroOrMore);
42
43
35 44
36 extern void obj_includelib(const char *name); 45 extern void obj_includelib(const char *name);
37 void obj_startaddress(Symbol *s); 46 void obj_startaddress(Symbol *s);
38 47
39 48
999 #endif 1008 #endif
1000 // LDC 1009 // LDC
1001 ///////////////////////////////////////////////////////////// 1010 /////////////////////////////////////////////////////////////
1002 ///////////////////////////////////////////////////////////// 1011 /////////////////////////////////////////////////////////////
1003 1012
1004 else if (global.params.ignoreUnsupportedPragmas) 1013 else if (ignoreUnsupportedPragmas)
1005 { 1014 {
1006 if (global.params.verbose) 1015 if (global.params.verbose)
1007 { 1016 {
1008 /* Print unrecognized pragmas 1017 /* Print unrecognized pragmas
1009 */ 1018 */