From c65cd459664f687dee07f39394006282322606b4 Mon Sep 17 00:00:00 2001 From: Tomas Lindquist Olsen Date: Tue, 26 Aug 2008 21:02:25 +0200 Subject: [PATCH] Removed unimplemented switches. --- dmd/mars.c | 15 --------------- dmd/mars.h | 3 --- dmd/module.c | 2 +- 3 files changed, 1 insertion(+), 19 deletions(-) diff --git a/dmd/mars.c b/dmd/mars.c index d71407b1..4b00ad07 100644 --- a/dmd/mars.c +++ b/dmd/mars.c @@ -213,7 +213,6 @@ Codegen control:\n\ -version=ident compile in version code identified by ident\n\ \n\ -noasm do not allow use of inline asm\n\ - -nofloat do not emit reference to floating point\n\ -noruntime do not allow code that generates implicit runtime calls\n\ -noverify do not run the validation pass before writing bitcode\n\ -unittest compile in unit tests\n\ @@ -222,8 +221,6 @@ Codegen control:\n\ -annotate annotate the bitcode with human readable source code\n\ -dis disassemble module after compiling\n\ -ignore ignore unsupported pragmas\n\ - -profile profile runtime performance of generated code\n\ - -cov do code coverage analysis\n\ \n\ Path options:\n\ -R provide path to the directory containing the runtime library\n\ @@ -372,20 +369,12 @@ int main(int argc, char *argv[]) global.params.useDeprecated = 1; else if (strcmp(p + 1, "c") == 0) global.params.link = 0; - else if (strcmp(p + 1, "cov") == 0) - global.params.cov = 1; else if (strcmp(p + 1, "fPIC") == 0) global.params.pic = 1; else if (strcmp(p + 1, "g") == 0) global.params.symdebug = 1; else if (strcmp(p + 1, "gc") == 0) global.params.symdebug = 2; - else if (strcmp(p + 1, "gt") == 0) - { error("use -profile instead of -gt\n"); - global.params.trace = 1; - } - else if (strcmp(p + 1, "profile") == 0) - global.params.trace = 1; else if (strcmp(p + 1, "v") == 0) global.params.verbose = 1; else if (strcmp(p + 1, "vv") == 0) { @@ -538,8 +527,6 @@ int main(int argc, char *argv[]) global.params.useInline = 0; //1 global.params.llvmInline = 1; } - else if (strcmp(p + 1, "nofloat") == 0) - global.params.nofloat = 1; else if (strcmp(p + 1, "quiet") == 0) global.params.quiet = 1; else if (strcmp(p + 1, "release") == 0) @@ -734,8 +721,6 @@ int main(int argc, char *argv[]) fatal(); } } - if (global.params.cov) - VersionCondition::addPredefinedGlobalIdent("D_Coverage"); bool allowForceEndianness = false; diff --git a/dmd/mars.h b/dmd/mars.h index c5e89add..d224bef9 100644 --- a/dmd/mars.h +++ b/dmd/mars.h @@ -58,7 +58,6 @@ struct Param { char obj; // write object file char link; // perform link - char trace; // insert profiling hooks char quiet; // suppress non-error messages char verbose; // verbose compile char symdebug; // insert debug symbolic information @@ -81,8 +80,6 @@ struct Param char preservePaths; // !=0 means don't strip path from source file char warnings; // enable warnings char pic; // generate position-independent-code for shared libs - char cov; // generate code coverage data - char nofloat; // code should not pull in floating point support char noruntime; // code is not allowed to make implicit calls to the runtime char novalidate;// no bitcode validation char Dversion; // D version number diff --git a/dmd/module.c b/dmd/module.c index fd08f1d5..33a849af 100644 --- a/dmd/module.c +++ b/dmd/module.c @@ -802,7 +802,7 @@ void Module::gensymfile() int Module::needModuleInfo() { - return needmoduleinfo || global.params.cov; + return needmoduleinfo; } Dsymbol *Module::search(Loc loc, Identifier *ident, int flags)