[llvm-commits] CVS: llvm/lib/Transforms/Scalar/IndVarSimplify.cpp SCCP.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Oct 27 09:12:40 PDT 2004



Changes in directory llvm/lib/Transforms/Scalar:

IndVarSimplify.cpp updated: 1.73 -> 1.74
SCCP.cpp updated: 1.104 -> 1.105
---
Log message:

Convert 'struct' to 'class' in various places to adhere to the coding standards
and work better with VC++.  Patch contributed by Morten Ofstad!



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

Index: llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
diff -u llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1.73 llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1.74
--- llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1.73	Mon Oct 11 20:02:29 2004
+++ llvm/lib/Transforms/Scalar/IndVarSimplify.cpp	Wed Oct 27 11:12:28 2004
@@ -66,7 +66,7 @@
 
     Instruction *InsertPt;
 
-    friend class SCEVVisitor<SCEVExpander, Value*>;
+    friend struct SCEVVisitor<SCEVExpander, Value*>;
   public:
     SCEVExpander(ScalarEvolution &se, LoopInfo &li) : SE(se), LI(li) {}
 


Index: llvm/lib/Transforms/Scalar/SCCP.cpp
diff -u llvm/lib/Transforms/Scalar/SCCP.cpp:1.104 llvm/lib/Transforms/Scalar/SCCP.cpp:1.105
--- llvm/lib/Transforms/Scalar/SCCP.cpp:1.104	Sat Oct 16 13:09:41 2004
+++ llvm/lib/Transforms/Scalar/SCCP.cpp	Wed Oct 27 11:12:28 2004
@@ -135,7 +135,7 @@
   // The implementation of this class
   //
 private:
-  friend class InstVisitor<SCCP>;        // Allow callbacks from visitor
+  friend struct InstVisitor<SCCP>;        // Allow callbacks from visitor
 
   // markConstant - Make a value be marked as "constant".  If the value
   // is not already a constant, add it to the instruction work list so that 






More information about the llvm-commits mailing list