mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
Fix problem where subpasses would invalidate all analyses outstanding
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2418 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6c1ce21ee6
commit
ee37bb34d1
@ -440,6 +440,10 @@ template<> struct PassManagerTraits<BasicBlock> : public BasicBlockPass {
|
||||
virtual bool doInitialization(Module *M);
|
||||
virtual bool runOnBasicBlock(BasicBlock *BB);
|
||||
virtual bool doFinalization(Module *M);
|
||||
|
||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.setPreservesAll();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -484,6 +488,10 @@ template<> struct PassManagerTraits<Function> : public FunctionPass {
|
||||
virtual bool doInitialization(Module *M);
|
||||
virtual bool runOnFunction(Function *F);
|
||||
virtual bool doFinalization(Module *M);
|
||||
|
||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.setPreservesAll();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user