Mercurial > projects > ldc
comparison dmd/mars.c @ 550:cbe08531430f
Removed unimplemented switches.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Tue, 26 Aug 2008 21:02:25 +0200 |
parents | 8d709660cd24 |
children | 68d7df3f9b05 aaba4f7c6d8a |
comparison
equal
deleted
inserted
replaced
549:d3baf2e52c4f | 550:cbe08531430f |
---|---|
211 -debug=ident compile in debug stmts identified by ident\n\ | 211 -debug=ident compile in debug stmts identified by ident\n\ |
212 -version=level compile in version code >= level\n\ | 212 -version=level compile in version code >= level\n\ |
213 -version=ident compile in version code identified by ident\n\ | 213 -version=ident compile in version code identified by ident\n\ |
214 \n\ | 214 \n\ |
215 -noasm do not allow use of inline asm\n\ | 215 -noasm do not allow use of inline asm\n\ |
216 -nofloat do not emit reference to floating point\n\ | |
217 -noruntime do not allow code that generates implicit runtime calls\n\ | 216 -noruntime do not allow code that generates implicit runtime calls\n\ |
218 -noverify do not run the validation pass before writing bitcode\n\ | 217 -noverify do not run the validation pass before writing bitcode\n\ |
219 -unittest compile in unit tests\n\ | 218 -unittest compile in unit tests\n\ |
220 -d allow deprecated features\n\ | 219 -d allow deprecated features\n\ |
221 \n\ | 220 \n\ |
222 -annotate annotate the bitcode with human readable source code\n\ | 221 -annotate annotate the bitcode with human readable source code\n\ |
223 -dis disassemble module after compiling\n\ | 222 -dis disassemble module after compiling\n\ |
224 -ignore ignore unsupported pragmas\n\ | 223 -ignore ignore unsupported pragmas\n\ |
225 -profile profile runtime performance of generated code\n\ | |
226 -cov do code coverage analysis\n\ | |
227 \n\ | 224 \n\ |
228 Path options:\n\ | 225 Path options:\n\ |
229 -R<path> provide path to the directory containing the runtime library\n\ | 226 -R<path> provide path to the directory containing the runtime library\n\ |
230 -I<path> where to look for imports\n\ | 227 -I<path> where to look for imports\n\ |
231 -J<path> where to look for string imports\n\ | 228 -J<path> where to look for string imports\n\ |
370 { | 367 { |
371 if (strcmp(p + 1, "d") == 0) | 368 if (strcmp(p + 1, "d") == 0) |
372 global.params.useDeprecated = 1; | 369 global.params.useDeprecated = 1; |
373 else if (strcmp(p + 1, "c") == 0) | 370 else if (strcmp(p + 1, "c") == 0) |
374 global.params.link = 0; | 371 global.params.link = 0; |
375 else if (strcmp(p + 1, "cov") == 0) | |
376 global.params.cov = 1; | |
377 else if (strcmp(p + 1, "fPIC") == 0) | 372 else if (strcmp(p + 1, "fPIC") == 0) |
378 global.params.pic = 1; | 373 global.params.pic = 1; |
379 else if (strcmp(p + 1, "g") == 0) | 374 else if (strcmp(p + 1, "g") == 0) |
380 global.params.symdebug = 1; | 375 global.params.symdebug = 1; |
381 else if (strcmp(p + 1, "gc") == 0) | 376 else if (strcmp(p + 1, "gc") == 0) |
382 global.params.symdebug = 2; | 377 global.params.symdebug = 2; |
383 else if (strcmp(p + 1, "gt") == 0) | |
384 { error("use -profile instead of -gt\n"); | |
385 global.params.trace = 1; | |
386 } | |
387 else if (strcmp(p + 1, "profile") == 0) | |
388 global.params.trace = 1; | |
389 else if (strcmp(p + 1, "v") == 0) | 378 else if (strcmp(p + 1, "v") == 0) |
390 global.params.verbose = 1; | 379 global.params.verbose = 1; |
391 else if (strcmp(p + 1, "vv") == 0) { | 380 else if (strcmp(p + 1, "vv") == 0) { |
392 Logger::enable(); | 381 Logger::enable(); |
393 very_verbose = true; | 382 very_verbose = true; |
536 // the ast rewrites dmd does for inlining messes up the ast. | 525 // the ast rewrites dmd does for inlining messes up the ast. |
537 // someday maybe we can support it, for now llvm does an excellent job at inlining | 526 // someday maybe we can support it, for now llvm does an excellent job at inlining |
538 global.params.useInline = 0; //1 | 527 global.params.useInline = 0; //1 |
539 global.params.llvmInline = 1; | 528 global.params.llvmInline = 1; |
540 } | 529 } |
541 else if (strcmp(p + 1, "nofloat") == 0) | |
542 global.params.nofloat = 1; | |
543 else if (strcmp(p + 1, "quiet") == 0) | 530 else if (strcmp(p + 1, "quiet") == 0) |
544 global.params.quiet = 1; | 531 global.params.quiet = 1; |
545 else if (strcmp(p + 1, "release") == 0) | 532 else if (strcmp(p + 1, "release") == 0) |
546 { | 533 { |
547 global.params.useInvariants = 0; | 534 global.params.useInvariants = 0; |
732 { | 719 { |
733 error("multiple source files, but only one .obj name"); | 720 error("multiple source files, but only one .obj name"); |
734 fatal(); | 721 fatal(); |
735 } | 722 } |
736 } | 723 } |
737 if (global.params.cov) | |
738 VersionCondition::addPredefinedGlobalIdent("D_Coverage"); | |
739 | 724 |
740 bool allowForceEndianness = false; | 725 bool allowForceEndianness = false; |
741 | 726 |
742 if (global.params.llvmArch == 0) { | 727 if (global.params.llvmArch == 0) { |
743 findDefaultTarget(); | 728 findDefaultTarget(); |