[PATCH] D55291: [gold-plugin] allow function/data sections to be toggleable
Nick Desaulniers via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 5 09:49:20 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL348389: [gold-plugin] allow function/data sections to be toggleable (authored by nickdesaulniers, committed by ).
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55291/new/
https://reviews.llvm.org/D55291
Files:
llvm/trunk/tools/gold/gold-plugin.cpp
Index: llvm/trunk/tools/gold/gold-plugin.cpp
===================================================================
--- llvm/trunk/tools/gold/gold-plugin.cpp
+++ llvm/trunk/tools/gold/gold-plugin.cpp
@@ -833,8 +833,10 @@
Conf.Options.RelaxELFRelocations = false;
// Toggle function/data sections.
- Conf.Options.FunctionSections = SplitSections;
- Conf.Options.DataSections = SplitSections;
+ if (FunctionSections.getNumOccurrences() == 0)
+ Conf.Options.FunctionSections = SplitSections;
+ if (DataSections.getNumOccurrences() == 0)
+ Conf.Options.DataSections = SplitSections;
Conf.MAttrs = MAttrs;
Conf.RelocModel = RelocationModel;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55291.176849.patch
Type: text/x-patch
Size: 659 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181205/4df869fb/attachment.bin>
More information about the llvm-commits
mailing list