diff --git a/lib/Analysis/AliasAnalysisCounter.cpp b/lib/Analysis/AliasAnalysisCounter.cpp index 6bad8cdfc52..09fd6b9e0e4 100644 --- a/lib/Analysis/AliasAnalysisCounter.cpp +++ b/lib/Analysis/AliasAnalysisCounter.cpp @@ -93,6 +93,18 @@ namespace { case ModRef: MR++; return ModRef; } } + + // FIXME: We could count these too... + bool pointsToConstantMemory(const Value *P) { + return getAnalysis().pointsToConstantMemory(P); + } + bool doesNotAccessMemory(Function *F) { + return getAnalysis().doesNotAccessMemory(F); + } + bool onlyReadsMemory(Function *F) { + return getAnalysis().onlyReadsMemory(F); + } + // Forwarding functions: just delegate to a real AA implementation, counting // the number of responses...