[llvm-commits] [124572] Handle -mllvm.
dpatel at apple.com
dpatel at apple.com
Mon Mar 5 16:42:35 PST 2007
Revision: 124572
Author: dpatel
Date: 2007-03-05 16:42:33 -0800 (Mon, 05 Mar 2007)
Log Message:
-----------
Handle -mllvm.
Modified Paths:
--------------
apple-local/branches/llvm/gcc/config/darwin.h
apple-local/branches/llvm/gcc/gcc.c
Modified: apple-local/branches/llvm/gcc/config/darwin.h
===================================================================
--- apple-local/branches/llvm/gcc/config/darwin.h 2007-03-05 22:40:18 UTC (rev 124571)
+++ apple-local/branches/llvm/gcc/config/darwin.h 2007-03-06 00:42:33 UTC (rev 124572)
@@ -156,6 +156,8 @@
{ "-image_base", "-Zimage_base" }, \
{ "-init", "-Zinit" }, \
{ "-install_name", "-Zinstall_name" }, \
+ /* APPLE LOCAL llvm */ \
+ { "-mllvm", "-Zmllvm" }, \
/* APPLE LOCAL mainline */ \
{ "-mkernel", "-mkernel -static -Wa,-static" }, \
{ "-multiply_defined_unused", "-Zmultiplydefinedunused" }, \
@@ -305,6 +307,8 @@
!strcmp (STR, "Zimage_base") ? 1 : \
!strcmp (STR, "Zinit") ? 1 : \
!strcmp (STR, "Zinstall_name") ? 1 : \
+ /* APPLE LOCAL llvm */ \
+ !strcmp (STR, "Zmllvm") ? 1 : \
!strcmp (STR, "Zmultiplydefinedunused") ? 1 : \
!strcmp (STR, "Zmultiply_defined") ? 1 : \
!strcmp (STR, "precomp-trustfile") ? 1 : \
Modified: apple-local/branches/llvm/gcc/gcc.c
===================================================================
--- apple-local/branches/llvm/gcc/gcc.c 2007-03-05 22:40:18 UTC (rev 124571)
+++ apple-local/branches/llvm/gcc/gcc.c 2007-03-06 00:42:33 UTC (rev 124572)
@@ -829,7 +829,8 @@
%{fastcp:-O3}"
/* APPLE LOCAL end -fast */
"%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}\
- %1 %{!Q:-quiet} -dumpbase %B %{d*} %{m*} %{a*}\
+"/* APPLE LOCAL llvm */"\
+ %1 %{!Q:-quiet} -dumpbase %B %{d*} %{Zmllvm*: -mllvm %*} %{m*} %{a*}\
%{c|S:%{o*:-auxbase-strip %*}%{!o*:-auxbase %b}}%{!c:%{!S:-auxbase %b}}\
%{g*} %{O*} %{W*&pedantic*} %{w} %{std*&ansi&trigraphs}\
%{v:-version} %{pg:-p} %{p} %{f*} %{undef}\
More information about the llvm-commits
mailing list