Make AA private, since subclasses shouldn't (aren't don't) access it directly.
authorDan Gohman <gohman@apple.com>
Thu, 5 Aug 2010 23:44:45 +0000 (23:44 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 5 Aug 2010 23:44:45 +0000 (23:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110398 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/AliasAnalysis.h

index 5bf620e1cf97b7341d28ddd65949adbcccf6f96c..2d72d4cf74d3146e949fb9104ad52f755f93ca9c 100644 (file)
@@ -43,8 +43,11 @@ class AnalysisUsage;
 class AliasAnalysis {
 protected:
   const TargetData *TD;
+
+private:
   AliasAnalysis *AA;       // Previous Alias Analysis to chain to.
 
+protected:
   /// InitializeAliasAnalysis - Subclasses must call this method to initialize
   /// the AliasAnalysis interface before any other methods are called.  This is
   /// typically called by the run* methods of these subclasses.  This may be