1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00

Set the code model when specified.

llvm-svn: 334571
This commit is contained in:
Bill Wendling 2018-06-13 05:53:59 +00:00
parent fa1ab0b0a2
commit 164f4125a2

View File

@ -840,6 +840,7 @@ static std::unique_ptr<LTO> createLTO(IndexWriteCallback OnIndexWrite,
Conf.MAttrs = MAttrs;
Conf.RelocModel = RelocationModel;
Conf.CodeModel = getCodeModel();
Conf.CGOptLevel = getCGOptLevel();
Conf.DisableVerify = options::DisableVerify;
Conf.OptLevel = options::OptLevel;