mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-16 09:30:09 +00:00
Initialize BasicAAWrapperPass in it's constructor
Summary: This idiom is used elsewhere in LLVM, but was overlooked here. Reviewers: chandlerc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D13628 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251348 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b522682945
commit
5d34bb0728
@ -203,7 +203,7 @@ class BasicAAWrapperPass : public FunctionPass {
|
|||||||
public:
|
public:
|
||||||
static char ID;
|
static char ID;
|
||||||
|
|
||||||
BasicAAWrapperPass() : FunctionPass(ID) {}
|
BasicAAWrapperPass();
|
||||||
|
|
||||||
BasicAAResult &getResult() { return *Result; }
|
BasicAAResult &getResult() { return *Result; }
|
||||||
const BasicAAResult &getResult() const { return *Result; }
|
const BasicAAResult &getResult() const { return *Result; }
|
||||||
|
@ -1567,6 +1567,10 @@ BasicAAResult BasicAA::run(Function &F, AnalysisManager<Function> *AM) {
|
|||||||
AM->getCachedResult<LoopAnalysis>(F));
|
AM->getCachedResult<LoopAnalysis>(F));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BasicAAWrapperPass::BasicAAWrapperPass() : FunctionPass(ID) {
|
||||||
|
initializeBasicAAWrapperPassPass(*PassRegistry::getPassRegistry());
|
||||||
|
}
|
||||||
|
|
||||||
char BasicAAWrapperPass::ID = 0;
|
char BasicAAWrapperPass::ID = 0;
|
||||||
void BasicAAWrapperPass::anchor() {}
|
void BasicAAWrapperPass::anchor() {}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user