mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Change create*Pass factory functions to return Pass* instead of
LoopPass*. - Although less precise, this means they can be used in clients without RTTI (who would otherwise need to include LoopPass.h, which eventually includes things using dynamic_cast). This was the simplest solution that presented itself, but I am happy to use a better one if available. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58010 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -205,7 +205,7 @@ char LoopIndexSplit::ID = 0;
|
||||
static RegisterPass<LoopIndexSplit>
|
||||
X("loop-index-split", "Index Split Loops");
|
||||
|
||||
LoopPass *llvm::createLoopIndexSplitPass() {
|
||||
Pass *llvm::createLoopIndexSplitPass() {
|
||||
return new LoopIndexSplit();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user