Mercurial > projects > ldc
diff dmd/module.h @ 1147:dbe4af57b240
Changed use of toObjFile to a new codegen method.
More versioning of DMD specific codegen code.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail.com> |
---|---|
date | Fri, 27 Mar 2009 17:54:27 +0100 |
parents | 1860414bf3b7 |
children | 46f6365a50d7 |
line wrap: on
line diff
--- a/dmd/module.h Thu Mar 26 20:45:53 2009 +0100 +++ b/dmd/module.h Fri Mar 27 17:54:27 2009 +0100 @@ -28,6 +28,7 @@ // Back end #if IN_LLVM +struct Ir; struct DValue; typedef DValue elem; namespace llvm { class Module; } @@ -175,16 +176,18 @@ #endif void genmoduleinfo(); +#if IN_LLVM // LDC - llvm::Module* genLLVMModule(int multiobj); + llvm::Module* genLLVMModule(Ir* sir); void buildTargetFiles(); File* buildFilePath(const char* forcename, const char* path, const char* ext); Module *isModule() { return this; } - + bool llvmForceLogging; // array ops emitted in this module already StringTable arrayfuncs; +#endif };