eliminate RegisterOpt. It does the same thing as RegisterPass.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29925 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2006-08-27 22:42:52 +00:00
parent 21a82e6fc7
commit 7f8897f22e
76 changed files with 107 additions and 149 deletions

View File

@ -34,7 +34,7 @@ namespace {
return false;
}
};
RegisterOpt<Hello> X("hello", "Hello World Pass");
RegisterPass<Hello> X("hello", "Hello World Pass");
// Hello2 - The second implementation with getAnalysisUsage implemented.
struct Hello2 : public FunctionPass {
@ -52,5 +52,6 @@ namespace {
AU.setPreservesAll();
};
};
RegisterOpt<Hello2> Y("hello2", "Hello World Pass (with getAnalysisUsage implemented)");
RegisterPass<Hello2> Y("hello2",
"Hello World Pass (with getAnalysisUsage implemented)");
}