Mercurial > projects > ldc
diff gen/irstate.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 | 985104c0f1db |
children | 8c73ff5f69e0 |
line wrap: on
line diff
--- a/gen/irstate.h Wed Feb 25 19:30:06 2009 +0100 +++ b/gen/irstate.h Thu Feb 26 14:11:49 2009 +0100 @@ -13,10 +13,18 @@ #include "ir/irstruct.h" #include "ir/irvar.h" +namespace llvm { + class TargetMachine; +} + // global ir state for current module struct IRState; +struct TargetABI; + extern IRState* gIR; +extern llvm::TargetMachine* gTargetMachine; extern const llvm::TargetData* gTargetData; +extern TargetABI* gABI; struct TypeFunction; struct TypeStruct;