comparison gen/irstate.cpp @ 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 1714836f2c0b
children 8c73ff5f69e0
comparison
equal deleted inserted replaced
987:73ff89728d85 988:2667e3a145be
14 14
15 #include "gen/irstate.h" 15 #include "gen/irstate.h"
16 #include "tollvm.h" 16 #include "tollvm.h"
17 17
18 IRState* gIR = 0; 18 IRState* gIR = 0;
19 llvm::TargetMachine* gTargetMachine = 0;
19 const llvm::TargetData* gTargetData = 0; 20 const llvm::TargetData* gTargetData = 0;
21 TargetABI* gABI = 0;
20 22
21 ////////////////////////////////////////////////////////////////////////////////////////// 23 //////////////////////////////////////////////////////////////////////////////////////////
22 IRScope::IRScope() 24 IRScope::IRScope()
23 { 25 {
24 begin = end = NULL; 26 begin = end = NULL;