Mercurial > projects > ldc
diff dmd/mars.c @ 323:0d52412d5b1a trunk
[svn r344] Fixed some very minor issues with the usage listing when calling llvmdc with no arguments.
Changed the way moduleinfo is registered to use the same approach as DMD, this eliminates the need for correct linking order and should make the way for using a natively compiled runtime library. This should speed up linking tremendously and should now be possible.
Fixed the llvm.used array to only be emitted if really necessary.
author | lindquist |
---|---|
date | Wed, 09 Jul 2008 23:43:51 +0200 |
parents | 0baca2feb554 |
children | 781af50846b2 |
line wrap: on
line diff
--- a/dmd/mars.c Wed Jul 09 17:02:55 2008 +0200 +++ b/dmd/mars.c Wed Jul 09 23:43:51 2008 +0200 @@ -161,7 +161,7 @@ D Language Documentation: http://www.digitalmars.com/d/1.0/index.html\n\ LLVMDC Homepage: http://www.dsource.org/projects/llvmdc\n\ Usage:\n\ - dmd files.d ... { -switch }\n\ + llvmdc files.d ... { -switch }\n\ \n\ files.d D source files\n%s\ -annotate annotate the bitcode with human readable source code\n\ @@ -188,8 +188,8 @@ -J<path> where to look for string imports\n\ -ignore ignore unsupported pragmas\n\ -inline do function inlining\n\ - -Llinkerflag pass linkerflag to llvm-ld\n\ - -m<arch> emit code specific to <arch>\n\ + -L<linkerflag> pass <linkerflag> to llvm-ld\n\ + -m<arch> emit code specific to <arch> being one of:\n\ x86 x86-64 ppc32 ppc64\n\ -noasm do not allow use of inline asm\n\ -nofloat do not emit reference to floating point\n\ @@ -199,12 +199,12 @@ -O<n> optimize at level <n> (0-5)\n\ -o- do not write object file\n\ -od<objdir> write object files to directory <objdir>\n\ - -of<filename> name output file to <filename>\n\ + -of<filename> name output file to <filename>\n\ -op do not strip paths from source file\n\ -oq write object files with fully qualified names\n\ - -profile profile runtime performance of generated code\n\ + -profile profile runtime performance of generated code\n\ -quiet suppress unnecessary messages\n\ - -release compile release version\n\ + -release compile release version\n\ -run srcfile args... run resulting program, passing args\n\ -R<path> provide path to the directory containing the runtime library\n\ -unittest compile in unit tests\n\