[llvm-commits] CVS: llvm/lib/VMCore/ConstantFolding.h PassManagerT.h

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



Changes in directory llvm/lib/VMCore:

ConstantFolding.h updated: 1.43 -> 1.44
PassManagerT.h updated: 1.53 -> 1.54
---
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:  (+7 -4)

Index: llvm/lib/VMCore/ConstantFolding.h
diff -u llvm/lib/VMCore/ConstantFolding.h:1.43 llvm/lib/VMCore/ConstantFolding.h:1.44
--- llvm/lib/VMCore/ConstantFolding.h:1.43	Mon Oct 11 17:52:25 2004
+++ llvm/lib/VMCore/ConstantFolding.h	Wed Oct 27 11:09:56 2004
@@ -24,7 +24,7 @@
 namespace llvm {
   class Value;
   class Constant;
-  struct Type;
+  class Type;
   
   // Constant fold various types of instruction...
   Constant *ConstantFoldCastInstruction(const Constant *V, const Type *DestTy);


Index: llvm/lib/VMCore/PassManagerT.h
diff -u llvm/lib/VMCore/PassManagerT.h:1.53 llvm/lib/VMCore/PassManagerT.h:1.54
--- llvm/lib/VMCore/PassManagerT.h:1.53	Sun Sep 19 23:47:24 2004
+++ llvm/lib/VMCore/PassManagerT.h	Wed Oct 27 11:09:56 2004
@@ -630,7 +630,8 @@
 // This pass manager is used to group together all of the BasicBlockPass's
 // into a single unit.
 //
-template<> struct PassManagerTraits<BasicBlock> : public BasicBlockPass {
+template<> class PassManagerTraits<BasicBlock> : public BasicBlockPass {
+public:
   // PassClass - The type of passes tracked by this PassManager
   typedef BasicBlockPass PassClass;
 
@@ -683,7 +684,8 @@
 // This pass manager is used to group together all of the FunctionPass's
 // into a single unit.
 //
-template<> struct PassManagerTraits<Function> : public FunctionPass {
+template<> class PassManagerTraits<Function> : public FunctionPass {
+public:
   // PassClass - The type of passes tracked by this PassManager
   typedef FunctionPass PassClass;
 
@@ -726,7 +728,8 @@
 //
 // This is the top level PassManager implementation that holds generic passes.
 //
-template<> struct PassManagerTraits<Module> : public ModulePass {
+template<> class PassManagerTraits<Module> : public ModulePass {
+public:
   // PassClass - The type of passes tracked by this PassManager
   typedef ModulePass PassClass;
 






More information about the llvm-commits mailing list