summaryrefslogtreecommitdiffstats
path: root/lld/ELF/LTO.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-02-14 05:45:47 +0000
committerRui Ueyama <ruiu@google.com>2017-02-14 05:45:47 +0000
commit104e2357de5dd2fc8e8124fea926feba72e3e472 (patch)
tree3cb61dcfe9146af93e3415cd3513e456e17cab48 /lld/ELF/LTO.cpp
parentf401077c29aed362d22ec7d27ea35079fa7b854e (diff)
downloadbcm5719-llvm-104e2357de5dd2fc8e8124fea926feba72e3e472.tar.gz
bcm5719-llvm-104e2357de5dd2fc8e8124fea926feba72e3e472.zip
Do not store a computable attributes to Config.
llvm-svn: 295031
Diffstat (limited to 'lld/ELF/LTO.cpp')
-rw-r--r--lld/ELF/LTO.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/LTO.cpp b/lld/ELF/LTO.cpp
index 07eb83d6f83..1fb752579a9 100644
--- a/lld/ELF/LTO.cpp
+++ b/lld/ELF/LTO.cpp
@@ -72,7 +72,7 @@ static std::unique_ptr<lto::LTO> createLTO() {
Conf.Options = InitTargetOptionsFromCodeGenFlags();
Conf.Options.RelaxELFRelocations = true;
- Conf.RelocModel = Config->Pic ? Reloc::PIC_ : Reloc::Static;
+ Conf.RelocModel = Config->pic() ? Reloc::PIC_ : Reloc::Static;
Conf.DisableVerify = Config->DisableVerify;
Conf.DiagHandler = diagnosticHandler;
Conf.OptLevel = Config->LTOO;
OpenPOWER on IntegriCloud