[lib/LTO] Simplify a bit. NFCI.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280396 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Davide Italiano 2016-09-01 18:34:47 +00:00
parent 816c475854
commit a964a2836f

View File

@ -140,10 +140,7 @@ bool opt(Config &C, TargetMachine *TM, unsigned Task, Module &M,
bool IsThinLto) {
M.setDataLayout(TM->createDataLayout());
runOldPMPasses(C, M, TM, IsThinLto);
if (C.PostOptModuleHook && !C.PostOptModuleHook(Task, M))
return false;
return true;
return !C.PostOptModuleHook || C.PostOptModuleHook(Task, M);
}
/// Monolithic LTO does not support caching (yet), this is a convenient wrapper