[llvm-commits] [llvm-gcc-4.2] r101893 - /llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Duncan Sands
baldrick at free.fr
Tue Apr 20 02:59:04 PDT 2010
Author: baldrick
Date: Tue Apr 20 04:59:04 2010
New Revision: 101893
URL: http://llvm.org/viewvc/llvm-project?rev=101893&view=rev
Log:
Port commit 101892 (baldrick) from dragonegg:
Wire up gcc's -ffunction-sections and -fdata-sections options to
the LLVM equivalents.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp?rev=101893&r1=101892&r2=101893&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Tue Apr 20 04:59:04 2010
@@ -409,6 +409,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