[llvm-commits] CVS: llvm/include/llvm/Support/InstVisitor.h

Reid Spencer reid at x10sys.com
Mon Nov 15 22:59:06 PST 2004



Changes in directory llvm/include/llvm/Support:

InstVisitor.h updated: 1.32 -> 1.33
---
Log message:

Standardize on 'class' instead of 'struct'. Gets rid of warnings in VC++

Patch contributed by Jeff Cohen.


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

Index: llvm/include/llvm/Support/InstVisitor.h
diff -u llvm/include/llvm/Support/InstVisitor.h:1.32 llvm/include/llvm/Support/InstVisitor.h:1.33
--- llvm/include/llvm/Support/InstVisitor.h:1.32	Sat Oct 16 13:06:23 2004
+++ llvm/include/llvm/Support/InstVisitor.h	Tue Nov 16 00:58:55 2004
@@ -70,12 +70,13 @@
 
 
 template<typename SubClass, typename RetTy=void>
-struct InstVisitor {
+class InstVisitor {
   //===--------------------------------------------------------------------===//
   // Interface code - This is the public interface of the InstVisitor that you
   // use to visit instructions...
   //
 
+public:
   // Generic visit method - Allow visitation to all instructions in a range
   template<class Iterator>
   void visit(Iterator Start, Iterator End) {






More information about the llvm-commits mailing list