aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/gold
diff options
context:
space:
mode:
authorjasonliu <jasonliu.development@gmail.com>2020-10-14 15:55:55 +0000
committerjasonliu <jasonliu.development@gmail.com>2020-10-14 15:58:31 +0000
commitf85bcc21ddadd07f38e1db7aa286ff985bd0eb10 (patch)
tree2d619cadda580b9f44153e87f1404ea4b258190e /llvm/tools/gold
parent89657b3a3b5772558ac084dc03591de5dab3f1f1 (diff)
downloadllvm-f85bcc21ddadd07f38e1db7aa286ff985bd0eb10.zip
llvm-f85bcc21ddadd07f38e1db7aa286ff985bd0eb10.tar.gz
llvm-f85bcc21ddadd07f38e1db7aa286ff985bd0eb10.tar.bz2
[AIX] Turn -fdata-sections on by default in Clang
Summary: This patch does the following: 1. Make InitTargetOptionsFromCodeGenFlags() accepts Triple as a parameter, because some options' default value is triple dependant. 2. DataSections is turned on by default on AIX for llc. 3. Test cases change accordingly because of the default behaviour change. 4. Clang Driver passes in -fdata-sections by default on AIX. Reviewed By: MaskRay, DiggerLin Differential Revision: https://reviews.llvm.org/D88737
Diffstat (limited to 'llvm/tools/gold')
-rw-r--r--llvm/tools/gold/gold-plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp
index 0124e0a..ebd08c4 100644
--- a/llvm/tools/gold/gold-plugin.cpp
+++ b/llvm/tools/gold/gold-plugin.cpp
@@ -852,7 +852,7 @@ static std::unique_ptr<LTO> createLTO(IndexWriteCallback OnIndexWrite,
ThinBackend Backend;
Conf.CPU = options::mcpu;
- Conf.Options = codegen::InitTargetOptionsFromCodeGenFlags();
+ Conf.Options = codegen::InitTargetOptionsFromCodeGenFlags(Triple());
// Disable the new X86 relax relocations since gold might not support them.
// FIXME: Check the gold version or add a new option to enable them.