Mercurial > projects > ldc
diff dmd/module.h @ 1052:12ea38902e83
Add '-singleobj' command line switch that will tell LDC to link LLVM modules internally and only emit a single object file.
The switch allows the optimizer and inliner to run on all modules at once and opens the door for template instantiation improvements that should lower compile time and executable size.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 07 Mar 2009 19:38:00 +0100 |
parents | 31bbc7f3b817 |
children | b30fe7e1dbb9 |
line wrap: on
line diff
--- a/dmd/module.h Sat Mar 07 14:25:30 2009 +0100 +++ b/dmd/module.h Sat Mar 07 19:38:00 2009 +0100 @@ -30,6 +30,7 @@ #if IN_LLVM struct DValue; typedef DValue elem; +namespace llvm { class Module; } #else #ifdef IN_GCC union tree_node; typedef union tree_node elem; @@ -133,7 +134,6 @@ #ifdef _DH void genhdrfile(); // generate D import file #endif - void genobjfile(int multiobj); // void gensymfile(); void gendocfile(); int needModuleInfo(); @@ -171,6 +171,7 @@ void genmoduleinfo(); // LDC + llvm::Module* genLLVMModule(int multiobj); void buildTargetFiles(); File* buildFilePath(char* forcename, char* path, char* ext); Module *isModule() { return this; }