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:
parent
e7ba91fa87
commit
e4f4bf3d65
@ -140,10 +140,7 @@ bool opt(Config &C, TargetMachine *TM, unsigned Task, Module &M,
|
|||||||
bool IsThinLto) {
|
bool IsThinLto) {
|
||||||
M.setDataLayout(TM->createDataLayout());
|
M.setDataLayout(TM->createDataLayout());
|
||||||
runOldPMPasses(C, M, TM, IsThinLto);
|
runOldPMPasses(C, M, TM, IsThinLto);
|
||||||
if (C.PostOptModuleHook && !C.PostOptModuleHook(Task, M))
|
return !C.PostOptModuleHook || C.PostOptModuleHook(Task, M);
|
||||||
return false;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Monolithic LTO does not support caching (yet), this is a convenient wrapper
|
/// Monolithic LTO does not support caching (yet), this is a convenient wrapper
|
||||||
|
Loading…
x
Reference in New Issue
Block a user