Mercurial > projects > ldc
diff 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 |
line wrap: on
line diff
--- a/dmd2/attrib.c Wed Feb 25 19:30:06 2009 +0100 +++ b/dmd2/attrib.c Thu Feb 26 14:11:49 2009 +0100 @@ -33,6 +33,15 @@ #include "../gen/enums.h" + +#include "llvm/Support/CommandLine.h" + +static llvm::cl::opt<bool> ignoreUnsupportedPragmas("ignore", + llvm::cl::desc("Ignore unsupported pragmas"), + llvm::cl::ZeroOrMore); + + + extern void obj_includelib(const char *name); void obj_startaddress(Symbol *s); @@ -1001,7 +1010,7 @@ ///////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////// - else if (global.params.ignoreUnsupportedPragmas) + else if (ignoreUnsupportedPragmas) { if (global.params.verbose) {