From 6c008761fa3d08182d834f71eb7044b66da7db90 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 13 Jun 2018 05:53:59 +0000 Subject: [PATCH] Set the code model when specified. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@334571 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/gold/gold-plugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/gold/gold-plugin.cpp b/tools/gold/gold-plugin.cpp index b3b2743033c..25ba80d2666 100644 --- a/tools/gold/gold-plugin.cpp +++ b/tools/gold/gold-plugin.cpp @@ -840,6 +840,7 @@ static std::unique_ptr createLTO(IndexWriteCallback OnIndexWrite, Conf.MAttrs = MAttrs; Conf.RelocModel = RelocationModel; + Conf.CodeModel = getCodeModel(); Conf.CGOptLevel = getCGOptLevel(); Conf.DisableVerify = options::DisableVerify; Conf.OptLevel = options::OptLevel; -- 2.11.0