comparison dmd/module.h @ 1535:61f12f4651b5

Don't use llvm::getGlobalContext() anymore
author Benjamin Kramer <benny.kra@gmail.com>
date Mon, 13 Jul 2009 20:16:15 +0200
parents 46f6365a50d7
children def7a1d494fd
comparison
equal deleted inserted replaced
1534:8ca25bd765a3 1535:61f12f4651b5
29 // Back end 29 // Back end
30 #if IN_LLVM 30 #if IN_LLVM
31 class Ir; 31 class Ir;
32 struct DValue; 32 struct DValue;
33 typedef DValue elem; 33 typedef DValue elem;
34 namespace llvm { class Module; } 34 namespace llvm {
35 class LLVMContext;
36 class Module;
37 }
35 #else 38 #else
36 39
37 #ifdef IN_GCC 40 #ifdef IN_GCC
38 union tree_node; typedef union tree_node elem; 41 union tree_node; typedef union tree_node elem;
39 #else 42 #else
176 #endif 179 #endif
177 void genmoduleinfo(); 180 void genmoduleinfo();
178 181
179 #if IN_LLVM 182 #if IN_LLVM
180 // LDC 183 // LDC
181 llvm::Module* genLLVMModule(Ir* sir); 184 llvm::Module* genLLVMModule(llvm::LLVMContext& context, Ir* sir);
182 void buildTargetFiles(); 185 void buildTargetFiles();
183 File* buildFilePath(const char* forcename, const char* path, const char* ext); 186 File* buildFilePath(const char* forcename, const char* path, const char* ext);
184 Module *isModule() { return this; } 187 Module *isModule() { return this; }
185 188
186 bool llvmForceLogging; 189 bool llvmForceLogging;