[llvm-commits] [dragonegg] r101892 - /dragonegg/trunk/llvm-backend.cpp

Duncan Sands baldrick at free.fr
Tue Apr 20 01:39:03 PDT 2010


Author: baldrick
Date: Tue Apr 20 03:39:03 2010
New Revision: 101892

URL: http://llvm.org/viewvc/llvm-project?rev=101892&view=rev
Log:
Wire up gcc's -ffunction-sections and -fdata-sections options to
the LLVM equivalents.

Modified:
    dragonegg/trunk/llvm-backend.cpp

Modified: dragonegg/trunk/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-backend.cpp?rev=101892&r1=101891&r2=101892&view=diff
==============================================================================
--- dragonegg/trunk/llvm-backend.cpp (original)
+++ dragonegg/trunk/llvm-backend.cpp Tue Apr 20 03:39:03 2010
@@ -390,6 +390,10 @@
     Args.push_back("--unwind-tables");
   if (!flag_schedule_insns)
     Args.push_back("--pre-RA-sched=source");
+  if (flag_function_sections)
+    Args.push_back("--ffunction-sections");
+  if (flag_data_sections)
+    Args.push_back("--fdata-sections");
 
   // If there are options that should be passed through to the LLVM backend
   // directly from the command line, do so now.  This is mainly for debugging





More information about the llvm-commits mailing list