Temporarily reverting.

llvm-svn: 336858
This commit is contained in:
Bill Wendling 2018-07-11 21:47:55 +00:00
parent 2c19fe52e9
commit 9a1c773cfb
1 changed files with 3 additions and 5 deletions

View 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;