mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 07:17:36 +00:00
Force postdom to be linked into opt and bugpoint, even though it is no longer used by any passes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51686 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -62,6 +62,7 @@ struct PostDominatorTree : public FunctionPass {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
FunctionPass* createPostDomTree();
|
||||||
|
|
||||||
/// PostDominanceFrontier Class - Concrete subclass of DominanceFrontier that is
|
/// PostDominanceFrontier Class - Concrete subclass of DominanceFrontier that is
|
||||||
/// used to compute the a post-dominance frontier.
|
/// used to compute the a post-dominance frontier.
|
||||||
@@ -90,6 +91,8 @@ private:
|
|||||||
const DomTreeNode *Node);
|
const DomTreeNode *Node);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
FunctionPass* createPostDomFrontier();
|
||||||
|
|
||||||
} // End llvm namespace
|
} // End llvm namespace
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -116,6 +116,8 @@ namespace {
|
|||||||
(void) llvm::createGVNPass();
|
(void) llvm::createGVNPass();
|
||||||
(void) llvm::createMemCpyOptPass();
|
(void) llvm::createMemCpyOptPass();
|
||||||
(void) llvm::createLoopDeletionPass();
|
(void) llvm::createLoopDeletionPass();
|
||||||
|
(void) llvm::createPostDomTree();
|
||||||
|
(void) llvm::createPostDomFrontier();
|
||||||
|
|
||||||
(void)new llvm::IntervalPartition();
|
(void)new llvm::IntervalPartition();
|
||||||
(void)new llvm::FindUsedTypes();
|
(void)new llvm::FindUsedTypes();
|
||||||
|
|||||||
@@ -42,6 +42,10 @@ PostDominatorTree::~PostDominatorTree()
|
|||||||
delete DT;
|
delete DT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FunctionPass* llvm::createPostDomTree() {
|
||||||
|
return new PostDominatorTree();
|
||||||
|
}
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// PostDominanceFrontier Implementation
|
// PostDominanceFrontier Implementation
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
@@ -84,3 +88,7 @@ PostDominanceFrontier::calculate(const PostDominatorTree &DT,
|
|||||||
|
|
||||||
return S;
|
return S;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FunctionPass* llvm::createPostDomFrontier() {
|
||||||
|
return new PostDominanceFrontier();
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user