From dc7a235363166a61e81986c534fe11ceb44109fc Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 28 Jul 2010 17:09:24 +0000 Subject: [PATCH] Add some extra friend declarations to fix a gcc-4.0 compile error. 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 | 2 ++ include/llvm/Analysis/ScalarEvolutionExpressions.h | 1 + 2 files changed, 3 insertions(+) diff --git a/include/llvm/Analysis/ScalarEvolution.h b/include/llvm/Analysis/ScalarEvolution.h index 8da3af0c7a5..1b27efb9955 100644 --- a/include/llvm/Analysis/ScalarEvolution.h +++ b/include/llvm/Analysis/ScalarEvolution.h @@ -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. /// diff --git a/include/llvm/Analysis/ScalarEvolutionExpressions.h b/include/llvm/Analysis/ScalarEvolutionExpressions.h index dd311c5508c..ec4ac071da7 100644 --- a/include/llvm/Analysis/ScalarEvolutionExpressions.h +++ b/include/llvm/Analysis/ScalarEvolutionExpressions.h @@ -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. -- 2.34.1