Mercurial > projects > ldc
comparison dmd/mars.c @ 277:90a8c798b0db trunk
[svn r298] Eliminated the dmd/link.c source file entirely in favor of a llvm::sys based approach to the same functionality.
author | lindquist |
---|---|
date | Fri, 20 Jun 2008 22:09:04 +0200 |
parents | 21f85bac0b1a |
children | a137ed004205 |
comparison
equal
deleted
inserted
replaced
276:21f85bac0b1a | 277:90a8c798b0db |
---|---|
41 #include "cond.h" | 41 #include "cond.h" |
42 #include "expression.h" | 42 #include "expression.h" |
43 #include "lexer.h" | 43 #include "lexer.h" |
44 | 44 |
45 #include "gen/logger.h" | 45 #include "gen/logger.h" |
46 #include "gen/linker.h" | |
46 | 47 |
47 void getenv_setargv(const char *envvar, int *pargc, char** *pargv); | 48 void getenv_setargv(const char *envvar, int *pargc, char** *pargv); |
48 | 49 |
49 Global global; | 50 Global global; |
50 | 51 |
1108 | 1109 |
1109 if (global.params.run) | 1110 if (global.params.run) |
1110 { | 1111 { |
1111 if (!status) | 1112 if (!status) |
1112 { | 1113 { |
1113 status = runProgram(); | 1114 status = runExectuable(); |
1114 | 1115 |
1115 /* Delete .obj files and .exe file | 1116 /* Delete .obj files and .exe file |
1116 */ | 1117 */ |
1117 for (i = 0; i < modules.dim; i++) | 1118 for (i = 0; i < modules.dim; i++) |
1118 { | 1119 { |
1119 m = (Module *)modules.data[i]; | 1120 m = (Module *)modules.data[i]; |
1120 m->deleteObjFile(); | 1121 m->deleteObjFile(); |
1121 } | 1122 } |
1122 deleteExeFile(); | 1123 deleteExecutable(); |
1123 } | 1124 } |
1124 } | 1125 } |
1125 } | 1126 } |
1126 | 1127 |
1127 return status; | 1128 return status; |