[llvm] r334571 - Set the code model when specified.
Bill Wendling via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 12 22:53:59 PDT 2018
Author: void
Date: Tue Jun 12 22:53:59 2018
New Revision: 334571
URL: http://llvm.org/viewvc/llvm-project?rev=334571&view=rev
Log:
Set the code model when specified.
Modified:
llvm/trunk/tools/gold/gold-plugin.cpp
Modified: llvm/trunk/tools/gold/gold-plugin.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/gold/gold-plugin.cpp?rev=334571&r1=334570&r2=334571&view=diff
==============================================================================
--- llvm/trunk/tools/gold/gold-plugin.cpp (original)
+++ llvm/trunk/tools/gold/gold-plugin.cpp Tue Jun 12 22:53:59 2018
@@ -840,6 +840,7 @@ static std::unique_ptr<LTO> createLTO(In
Conf.MAttrs = MAttrs;
Conf.RelocModel = RelocationModel;
+ Conf.CodeModel = getCodeModel();
Conf.CGOptLevel = getCGOptLevel();
Conf.DisableVerify = options::DisableVerify;
Conf.OptLevel = options::OptLevel;
More information about the llvm-commits
mailing list