Add some extra friend declarations to fix a gcc-4.0 compile error.

This is a temporary fix, until more elaborate changes are ready.

llvm-svn: 109593
This commit is contained in:
Dan Gohman 2010-07-28 17:09:24 +00:00
parent 86e761052a
commit 44ee74292f
2 changed files with 3 additions and 0 deletions

View 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.
///

View 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.