[llvm-commits] [llvm-gcc-4.2] r46886 - in /llvm-gcc-4.2/trunk/gcc: config/darwin.h gcc.c

Devang Patel dpatel at apple.com
Fri Feb 8 10:58:16 PST 2008


Author: dpatel
Date: Fri Feb  8 12:58:15 2008
New Revision: 46886

URL: http://llvm.org/viewvc/llvm-project?rev=46886&view=rev
Log:
Fix -emit-llvm command line handling.

Modified:
    llvm-gcc-4.2/trunk/gcc/config/darwin.h
    llvm-gcc-4.2/trunk/gcc/gcc.c

Modified: llvm-gcc-4.2/trunk/gcc/config/darwin.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/darwin.h?rev=46886&r1=46885&r2=46886&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/darwin.h (original)
+++ llvm-gcc-4.2/trunk/gcc/config/darwin.h Fri Feb  8 12:58:15 2008
@@ -134,7 +134,6 @@
   { "-dylib_file", "-Zdylib_file" }, \
   { "-dynamic", "-Zdynamic" },  \
   { "-dynamiclib", "-Zdynamiclib" },  \
-  { "-emit-llvm", "-Zemit-llvm" },  \
   { "-exported_symbols_list", "-Zexported_symbols_list" },  \
   { "-gfull", "-g -fno-eliminate-unused-debug-symbols" }, \
   { "-gused", "-g -feliminate-unused-debug-symbols" }, \

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=46886&r1=46885&r2=46886&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/gcc.c (original)
+++ llvm-gcc-4.2/trunk/gcc/gcc.c Fri Feb  8 12:58:15 2008
@@ -1145,10 +1145,8 @@
    {"--dependencies", "-M", 0},
    {"--dump", "-d", "a"},
    {"--dumpbase", "-dumpbase", "a"},
-   /* LLVM LOCAL begin */
-   {"--emit-llvm", "-Zemit-llvm", 0 },
-   {"-emit-llvm", "-Zemit-llvm", 0 },
-   /* LLVM LOCAL end */
+   /* LLVM LOCAL */
+   {"--emit-llvm", "-emit-llvm", 0 },
    {"--encoding", "-fencoding=", "aj"},
    {"--entry", "-e", 0},
    {"--extra-warnings", "-W", 0},
@@ -1228,6 +1226,8 @@
   const char *const replacements;
 } target_option_translations[] =
 {
+  /* LLVM LOCAL */
+  {"-emit-llvm", "-Zemit-llvm"}, 
   TARGET_OPTION_TRANSLATE_TABLE,
   { 0, 0 }
 };





More information about the llvm-commits mailing list