[llvm-commits] CVS: llvm/lib/Transforms/Hello/Hello.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Aug 27 15:43:26 PDT 2006



Changes in directory llvm/lib/Transforms/Hello:

Hello.cpp updated: 1.7 -> 1.8
---
Log message:

eliminate RegisterOpt.  It does the same thing as RegisterPass.


---
Diffs of the changes:  (+3 -2)

 Hello.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


Index: llvm/lib/Transforms/Hello/Hello.cpp
diff -u llvm/lib/Transforms/Hello/Hello.cpp:1.7 llvm/lib/Transforms/Hello/Hello.cpp:1.8
--- llvm/lib/Transforms/Hello/Hello.cpp:1.7	Mon Aug  7 18:17:24 2006
+++ llvm/lib/Transforms/Hello/Hello.cpp	Sun Aug 27 17:42:52 2006
@@ -34,7 +34,7 @@
       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 @@
       AU.setPreservesAll();
     };
   };
-  RegisterOpt<Hello2> Y("hello2", "Hello World Pass (with getAnalysisUsage implemented)");
+  RegisterPass<Hello2> Y("hello2",
+                        "Hello World Pass (with getAnalysisUsage implemented)");
 }






More information about the llvm-commits mailing list