mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 15:39:06 +00:00
[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:
parent
816c475854
commit
a964a2836f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user