[llvm-commits] [llvm-gcc-4.2] r50046 - /llvm-gcc-4.2/trunk/gcc/ada/make.adb

Duncan Sands baldrick at free.fr
Mon Apr 21 09:49:09 PDT 2008


Author: baldrick
Date: Mon Apr 21 11:49:08 2008
New Revision: 50046

URL: http://llvm.org/viewvc/llvm-project?rev=50046&view=rev
Log:
Fix PR2237: have gnatmake pass -emit-llvm to the
compiler.

Modified:
    llvm-gcc-4.2/trunk/gcc/ada/make.adb

Modified: llvm-gcc-4.2/trunk/gcc/ada/make.adb
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/ada/make.adb?rev=50046&r1=50045&r2=50046&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/ada/make.adb (original)
+++ llvm-gcc-4.2/trunk/gcc/ada/make.adb Mon Apr 21 11:49:08 2008
@@ -7384,6 +7384,14 @@
             --  unless we are dealing with a debug switch (starts with 'd')
             --  or an extended gnatmake switch (starts with 'e').
 
+         --  LLVM local begin
+         elsif Argv'Length >= 10 and then Argv (2 .. 10) = "emit-llvm" then
+
+            --  Pass -emit-llvm and -emit-llvm-bc to the Compiler
+
+            Add_Switch (Argv, Compiler, And_Save => And_Save);
+
+         --  LLVM local end
          elsif Argv (2) /= 'd'
            and then Argv (2) /= 'e'
            and then Argv (2 .. Argv'Last) /= "C"





More information about the llvm-commits mailing list