diff dmd/mars.h @ 1170:e40c65bd8c5d

Allow specific optimization passes to be requested from the command line. Now you can run "`ldc test.d -c -mem2reg -simplifycfg`" if you feel the urge. The -O<N> options are still supported, and are inserted in the passes list in the position where they appear on the command line. (so -simplifycfg -O1 -instcombine does the "right thing") One small change: -inline is renamed to -enable-inlining due to a naming conflict with the option to add the -inline pass. -inline now inserts the inlining pass in the position specified, not in the middle of -O<N>. (ldmd has been updated to translate -inline to -enable-inlining)
author Frits van Bommel <fvbommel wxs.nl>
date Sun, 29 Mar 2009 15:46:55 +0200
parents e7f0c2b48047
children e961851fb8be
line wrap: on
line diff
--- a/dmd/mars.h	Sun Mar 29 11:44:32 2009 +0200
+++ b/dmd/mars.h	Sun Mar 29 15:46:55 2009 +0200
@@ -138,8 +138,11 @@
     bool link;          // perform link
     bool verbose;       // verbose compile
     char symdebug;	// insert debug symbolic information
+#if !IN_LLVM
+    // LDC uses a different mechanism
     bool optimize;      // run optimizer
     char optimizeLevel; // optimization level
+#endif
     ARCH cpu;		// target CPU
     OS   os;		// target OS
     bool is64bit;       // generate 64 bit code
@@ -210,7 +213,6 @@
     OUTPUTFLAG output_bc;
     OUTPUTFLAG output_s;
     OUTPUTFLAG output_o;
-    bool llvmInline;
     bool llvmAnnotate;
     bool useInlineAsm;