1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

[lib/LTO] Simplify a bit. NFCI.

llvm-svn: 280396
This commit is contained in:
Davide Italiano 2016-09-01 18:34:47 +00:00
parent e7ba91fa87
commit e4f4bf3d65

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