From 164f4125a258b9497f0eb5d15718a4d924e7eb70 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. llvm-svn: 334571 --- 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;