Mercurial > projects > ldc
comparison gen/cl_options.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 | d1ec9ff0e9ba |
comparison
equal
deleted
inserted
replaced
987:73ff89728d85 | 988:2667e3a145be |
---|---|
36 #endif | 36 #endif |
37 extern cl::list<std::string> versions; | 37 extern cl::list<std::string> versions; |
38 | 38 |
39 extern cl::opt<const llvm::TargetMachineRegistry::entry*, false, | 39 extern cl::opt<const llvm::TargetMachineRegistry::entry*, false, |
40 llvm::RegistryParser<llvm::TargetMachine> > mArch; | 40 llvm::RegistryParser<llvm::TargetMachine> > mArch; |
41 | 41 extern cl::opt<std::string> mCPU; |
42 extern cl::list<std::string> mAttrs; | |
43 extern cl::opt<std::string> mTargetTriple; | |
44 | |
42 // Arguments to -d-debug | 45 // Arguments to -d-debug |
43 extern std::vector<std::string> debugArgs; | 46 extern std::vector<std::string> debugArgs; |
44 // Arguments to -run | 47 // Arguments to -run |
45 } | 48 } |
46 #endif | 49 #endif |