diff options
author | Dan Gohman <gohman@apple.com> | 2010-07-28 17:09:24 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-07-28 17:09:24 +0000 |
commit | dc7a235363166a61e81986c534fe11ceb44109fc (patch) | |
tree | d69bd815708683c0a08073df9433d6f9547883e7 /include | |
parent | f5e13095fa5d2b5d25e71b477f343f470f06cda5 (diff) | |
download | external_llvm-dc7a235363166a61e81986c534fe11ceb44109fc.zip external_llvm-dc7a235363166a61e81986c534fe11ceb44109fc.tar.gz external_llvm-dc7a235363166a61e81986c534fe11ceb44109fc.tar.bz2 |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/ScalarEvolution.h | 2 | ||||
-rw-r--r-- | include/llvm/Analysis/ScalarEvolutionExpressions.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Analysis/ScalarEvolution.h b/include/llvm/Analysis/ScalarEvolution.h index 8da3af0..1b27efb 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 dd311c5..ec4ac07 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. |