projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e3da71
)
[lib/LTO] Simplify a bit. NFCI.
author
Davide Italiano
<davide@freebsd.org>
Thu, 1 Sep 2016 18:34:47 +0000
(18:34 +0000)
committer
Davide Italiano
<davide@freebsd.org>
Thu, 1 Sep 2016 18:34:47 +0000
(18:34 +0000)
llvm-svn: 280396
llvm/lib/LTO/LTOBackend.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/LTO/LTOBackend.cpp
b/llvm/lib/LTO/LTOBackend.cpp
index
5f17c65
..
2a4bb8c
100644
(file)
--- a/
llvm/lib/LTO/LTOBackend.cpp
+++ b/
llvm/lib/LTO/LTOBackend.cpp
@@
-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