summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-07-28 17:09:24 +0000
committerDan Gohman <gohman@apple.com>2010-07-28 17:09:24 +0000
commit44ee74292f039de0d1f4706be2d6be16a6da939d (patch)
tree65f4d000287841fb7a1edad4c430f632c68b1d70
parent86e761052aa90a43d5152959303cef7610c5fb26 (diff)
downloadbcm5719-llvm-44ee74292f039de0d1f4706be2d6be16a6da939d.tar.gz
bcm5719-llvm-44ee74292f039de0d1f4706be2d6be16a6da939d.zip
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
-rw-r--r--llvm/include/llvm/Analysis/ScalarEvolution.h2
-rw-r--r--llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/Analysis/ScalarEvolution.h b/llvm/include/llvm/Analysis/ScalarEvolution.h
index 8da3af0c7a5..1b27efb9955 100644
--- a/llvm/include/llvm/Analysis/ScalarEvolution.h
+++ b/llvm/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/llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h b/llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h
index dd311c5508c..ec4ac071da7 100644
--- a/llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h
+++ b/llvm/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.
OpenPOWER on IntegriCloud