OSDN Git Service

Temporarily reverting.
authorBill Wendling <isanbard@gmail.com>
Wed, 11 Jul 2018 21:47:55 +0000 (21:47 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 11 Jul 2018 21:47:55 +0000 (21:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@336858 91177308-0d34-0410-b5e6-96231b3b80d8

tools/gold/gold-plugin.cpp

index e88afd1..25ba80d 100644 (file)
@@ -834,11 +834,9 @@ static std::unique_ptr<LTO> createLTO(IndexWriteCallback OnIndexWrite,
   // 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;