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

Chris Lattner lattner at cs.uiuc.edu
Wed Dec 8 08:23:00 PST 2004



Changes in directory llvm/lib/VMCore:

PassManagerT.h updated: 1.54 -> 1.55
---
Log message:

Work correctly with MSVC and ICC, patch contributed by Bjørn Wennberg


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

Index: llvm/lib/VMCore/PassManagerT.h
diff -u llvm/lib/VMCore/PassManagerT.h:1.54 llvm/lib/VMCore/PassManagerT.h:1.55
--- llvm/lib/VMCore/PassManagerT.h:1.54	Wed Oct 27 11:09:56 2004
+++ llvm/lib/VMCore/PassManagerT.h	Wed Dec  8 10:22:48 2004
@@ -142,12 +142,12 @@
   typedef typename Traits::BatcherClass BatcherClass;
   typedef typename Traits::ParentClass   ParentClass;
 
-#ifndef _MSC_VER
-  friend class PassManagerTraits<UnitType>::PassClass;
-  friend class PassManagerTraits<UnitType>::SubPassClass;  
-#else
+#if defined(_MSC_VER) || defined(__INTEL_COMPILER)
   friend PassClass;
   friend SubPassClass;
+#else
+  friend class PassManagerTraits<UnitType>::PassClass;
+  friend class PassManagerTraits<UnitType>::SubPassClass;  
 #endif
   friend class PassManagerTraits<UnitType>;
   friend class ImmutablePass;






More information about the llvm-commits mailing list