[llvm] r336858 - Temporarily reverting.

Bill Wendling via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 11 14:47:55 PDT 2018


Author: void
Date: Wed Jul 11 14:47:55 2018
New Revision: 336858

URL: http://llvm.org/viewvc/llvm-project?rev=336858&view=rev
Log:
Temporarily reverting.

Modified:
    llvm/trunk/tools/gold/gold-plugin.cpp

Modified: llvm/trunk/tools/gold/gold-plugin.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/gold/gold-plugin.cpp?rev=336858&r1=336857&r2=336858&view=diff
==============================================================================
--- llvm/trunk/tools/gold/gold-plugin.cpp (original)
+++ llvm/trunk/tools/gold/gold-plugin.cpp Wed Jul 11 14:47:55 2018
@@ -834,11 +834,9 @@ static std::unique_ptr<LTO> createLTO(In
   // FIXME: Check the gold version or add a new option to enable them.
   Conf.Options.RelaxELFRelocations = false;
 
-  // Toggle function/data sections.
-  if (FunctionSections.getNumOccurrences() == 0)
-    Conf.Options.FunctionSections = true;
-  if (DataSections.getNumOccurrences() == 0)
-    Conf.Options.DataSections = true;
+  // Enable function/data sections by default.
+  Conf.Options.FunctionSections = true;
+  Conf.Options.DataSections = true;
 
   Conf.MAttrs = MAttrs;
   Conf.RelocModel = RelocationModel;




More information about the llvm-commits mailing list