[llvm-commits] [llvm-gcc-4.2] r63817 - in /llvm-gcc-4.2/trunk/gcc: gcc.c gcc.h
Dan Gohman
gohman at apple.com
Wed Feb 4 18:44:33 PST 2009
Author: djg
Date: Wed Feb 4 20:44:33 2009
New Revision: 63817
URL: http://llvm.org/viewvc/llvm-project?rev=63817&view=rev
Log:
Fix the "-mllvm" option for non-Darwin hosts. On Darwin
command-line options are curiously munged by
TARGET_OPTION_TRANSLATE_TABLE.
Modified:
llvm-gcc-4.2/trunk/gcc/gcc.c
llvm-gcc-4.2/trunk/gcc/gcc.h
Modified: llvm-gcc-4.2/trunk/gcc/gcc.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/gcc.c?rev=63817&r1=63816&r2=63817&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/gcc.c (original)
+++ llvm-gcc-4.2/trunk/gcc/gcc.c Wed Feb 4 20:44:33 2009
@@ -1171,6 +1171,9 @@
{"--include-with-prefix-after", "-iwithprefix", "a"},
{"--language", "-x", "a"},
{"--library-directory", "-L", "a"},
+ /* LLVM LOCAL begin */
+ {"--llvm-options", "-mllvm", "a"},
+ /* LLVM LOCAL end */
{"--machine", "-m", "aj"},
{"--machine-", "-m", "*j"},
{"--no-integrated-cpp", "-no-integrated-cpp", 0},
Modified: llvm-gcc-4.2/trunk/gcc/gcc.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/gcc.h?rev=63817&r1=63816&r2=63817&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/gcc.h (original)
+++ llvm-gcc-4.2/trunk/gcc/gcc.h Wed Feb 4 20:44:33 2009
@@ -55,6 +55,9 @@
/* APPLE LOCAL ARM iwithsysroot 4917039 */ \
|| !strcmp (STR, "iwithsysroot") \
|| !strcmp (STR, "-param") || !strcmp (STR, "specs") \
+ /* LLVM LOCAL begin */ \
+ || !strcmp (STR, "mllvm") \
+ /* LLVM LOCAL end */ \
|| !strcmp (STR, "MF") || !strcmp (STR, "MT") || !strcmp (STR, "MQ"))
More information about the llvm-commits
mailing list