From 7f8897f22e88271cfa114998a4d6088e7c8e8e11 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 27 Aug 2006 22:42:52 +0000 Subject: 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 --- lib/Transforms/Hello/Hello.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/Transforms/Hello') diff --git a/lib/Transforms/Hello/Hello.cpp b/lib/Transforms/Hello/Hello.cpp index 804c3a70b2..cfa879a32d 100644 --- a/lib/Transforms/Hello/Hello.cpp +++ b/lib/Transforms/Hello/Hello.cpp @@ -34,7 +34,7 @@ namespace { return false; } }; - RegisterOpt X("hello", "Hello World Pass"); + RegisterPass X("hello", "Hello World Pass"); // Hello2 - The second implementation with getAnalysisUsage implemented. struct Hello2 : public FunctionPass { @@ -52,5 +52,6 @@ namespace { AU.setPreservesAll(); }; }; - RegisterOpt Y("hello2", "Hello World Pass (with getAnalysisUsage implemented)"); + RegisterPass Y("hello2", + "Hello World Pass (with getAnalysisUsage implemented)"); } -- cgit v1.2.3