projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
When not destroying the source, the linker is not remapping the types. Added support
[oota-llvm.git]
/
include
/
llvm
/
PassAnalysisSupport.h
diff --git
a/include/llvm/PassAnalysisSupport.h
b/include/llvm/PassAnalysisSupport.h
index 0136966ea08b3a8bfec8526e5dbe7503a69829e7..5c6a2d7a92f9638c0118f03f1274071ceb82a288 100644
(file)
--- a/
include/llvm/PassAnalysisSupport.h
+++ b/
include/llvm/PassAnalysisSupport.h
@@
-143,6
+143,8
@@
public:
Pass *findImplPass(Pass *P, AnalysisID PI, Function &F);
void addAnalysisImplsPair(AnalysisID PI, Pass *P) {
+ if (findImplPass(PI) == P)
+ return;
std::pair<AnalysisID, Pass*> pir = std::make_pair(PI,P);
AnalysisImpls.push_back(pir);
}