diff options
author | Chris Lattner <sabre@nondot.org> | 2006-08-27 22:30:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-08-27 22:30:17 +0000 |
commit | 5d8925c7c506a54ebdfb0bc93437ec9f602eaaa0 (patch) | |
tree | dea599a5388d6da5b94fec761128353f08be2dc3 /lib/Analysis/CFGPrinter.cpp | |
parent | 2dd3d423aae84649c434b2a58ba4ed7e918580d8 (diff) |
Eliminate RegisterAnalysis. RegisterPass now does all that is necessary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29921 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFGPrinter.cpp')
-rw-r--r-- | lib/Analysis/CFGPrinter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Analysis/CFGPrinter.cpp b/lib/Analysis/CFGPrinter.cpp index 693c1f6d8c..a762a8e5f8 100644 --- a/lib/Analysis/CFGPrinter.cpp +++ b/lib/Analysis/CFGPrinter.cpp @@ -109,8 +109,8 @@ namespace { } }; - RegisterAnalysis<CFGPrinter> P1("print-cfg", - "Print CFG of function to 'dot' file"); + RegisterPass<CFGPrinter> P1("print-cfg", + "Print CFG of function to 'dot' file"); struct CFGOnlyPrinter : public CFGPrinter { virtual bool runOnFunction(Function &F) { @@ -127,7 +127,7 @@ namespace { } }; - RegisterAnalysis<CFGOnlyPrinter> + RegisterPass<CFGOnlyPrinter> P2("print-cfg-only", "Print CFG of function to 'dot' file (with no function bodies)"); } |