Add some extra friend declarations to fix a gcc-4.0 compile error.
authorDan Gohman <gohman@apple.com>
Wed, 28 Jul 2010 17:09:24 +0000 (17:09 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 28 Jul 2010 17:09:24 +0000 (17:09 +0000)
This is a temporary fix, until more elaborate changes are ready.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109593 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/ScalarEvolution.h
include/llvm/Analysis/ScalarEvolutionExpressions.h

index 8da3af0c7a56362ba92b601ca6c22a38540e438a..1b27efb99550aba47be8d7ab14be8d1639d7835a 100644 (file)
@@ -44,6 +44,7 @@ namespace llvm {
   class Loop;
   class LoopInfo;
   class Operator;
+  class SCEVUnknown;
 
   /// SCEV - This class represents an analyzed expression in the program.  These
   /// are opaque objects that the client is not allowed to do much with
@@ -175,6 +176,7 @@ namespace llvm {
 
     friend class SCEVCallbackVH;
     friend class SCEVExpander;
+    friend class SCEVUnknown;
 
     /// F - The function we are analyzing.
     ///
index dd311c5508cce33fd4c23c3d07be29edb7290074..ec4ac071da7bf70680d1ae662266f64c049a0bfb 100644 (file)
@@ -522,6 +522,7 @@ namespace llvm {
   ///
   class SCEVUnknown : public SCEV {
     friend class ScalarEvolution;
+    friend class ScalarEvolution::SCEVCallbackVH;
 
     // This should be an AssertingVH, however SCEVUnknowns are allocated in a
     // BumpPtrAllocator so their destructors are never called.