comparison dmd2/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 54b3c1394d62
children
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
183 #endif 186 #endif
184 void genmoduleinfo(); 187 void genmoduleinfo();
185 188
186 #if IN_LLVM 189 #if IN_LLVM
187 // LDC 190 // LDC
188 llvm::Module* genLLVMModule(Ir* sir); 191 llvm::Module* genLLVMModule(llvm::LLVMContext& context, Ir* sir);
189 void buildTargetFiles(); 192 void buildTargetFiles();
190 File* buildFilePath(const char* forcename, const char* path, const char* ext); 193 File* buildFilePath(const char* forcename, const char* path, const char* ext);
191 Module *isModule() { return this; } 194 Module *isModule() { return this; }
192 195
193 bool llvmForceLogging; 196 bool llvmForceLogging;