aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-12-08 16:22:48 +0000
committerChris Lattner <sabre@nondot.org>2004-12-08 16:22:48 +0000
commit1d875b854c19b7d62ffc8b2ebbb68ae0b3c3caaf (patch)
tree508aeb17d5bc52ebd5d0d0c457afc0ff07383bca
parentfe781654a365946652dbebaed89194c793b74246 (diff)
downloadexternal_llvm-1d875b854c19b7d62ffc8b2ebbb68ae0b3c3caaf.zip
external_llvm-1d875b854c19b7d62ffc8b2ebbb68ae0b3c3caaf.tar.gz
external_llvm-1d875b854c19b7d62ffc8b2ebbb68ae0b3c3caaf.tar.bz2
Work correctly with MSVC and ICC, patch contributed by Bjørn Wennberg
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18631 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/VMCore/PassManagerT.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/VMCore/PassManagerT.h b/lib/VMCore/PassManagerT.h
index 8de22d4..9cd38b9 100644
--- a/lib/VMCore/PassManagerT.h
+++ b/lib/VMCore/PassManagerT.h
@@ -142,12 +142,12 @@ class PassManagerT : public PassManagerTraits<UnitType>,public AnalysisResolver{
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;