[llvm-commits] CVS: llvm/lib/VMCore/PassManagerT.h
    John Criswell 
    criswell at choi.cs.uiuc.edu
       
    Mon Jun 23 14:08:15 PDT 2003
    
    
  
Changes in directory llvm/lib/VMCore:
PassManagerT.h updated: 1.38 -> 1.38.2.1
---
Log message:
Modified code so that it compiles under GCC 3.3, but should otherwise function
the same.
---
Diffs of the changes:
Index: llvm/lib/VMCore/PassManagerT.h
diff -u llvm/lib/VMCore/PassManagerT.h:1.38 llvm/lib/VMCore/PassManagerT.h:1.38.2.1
--- llvm/lib/VMCore/PassManagerT.h:1.38	Thu Apr 24 15:07:38 2003
+++ llvm/lib/VMCore/PassManagerT.h	Mon Jun 23 14:06:45 2003
@@ -130,8 +130,14 @@
   typedef typename Traits::BatcherClass BatcherClass;
   typedef typename Traits::ParentClass   ParentClass;
 
-  friend typename Traits::PassClass;
-  friend typename Traits::SubPassClass;  
+  //
+  // JTC:
+  //	GCC 3.3 does not permit friend declarations without the class keyword.
+  //	Hence, I changed the following two lines to allow the code to compiler
+  //	under the new compiler.
+  //
+  friend class PassManagerTraits<UnitType>::PassClass;
+  friend class PassManagerTraits<UnitType>::SubPassClass;  
   friend class Traits;
   friend class ImmutablePass;
 
    
    
More information about the llvm-commits
mailing list