From 0cafa92371ce020ce19e9aacf1a96f8c8a7bb47a Mon Sep 17 00:00:00 2001 From: Andrew Lenharth Date: Tue, 18 Apr 2006 23:45:19 +0000 Subject: [PATCH] fix printing call graphs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27820 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/analyze/AnalysisWrappers.cpp | 2 +- tools/opt/AnalysisWrappers.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/analyze/AnalysisWrappers.cpp b/tools/analyze/AnalysisWrappers.cpp index 8e5c3339bfe..b371d50ef33 100644 --- a/tools/analyze/AnalysisWrappers.cpp +++ b/tools/analyze/AnalysisWrappers.cpp @@ -71,7 +71,7 @@ namespace { } virtual bool runOnModule(Module &M) { return false; } - void print(std::ostream &OS, Module *M) const { + virtual void print(std::ostream &OS, const Module *M) const { getAnalysis().print(OS, M); } }; diff --git a/tools/opt/AnalysisWrappers.cpp b/tools/opt/AnalysisWrappers.cpp index 8e5c3339bfe..b371d50ef33 100644 --- a/tools/opt/AnalysisWrappers.cpp +++ b/tools/opt/AnalysisWrappers.cpp @@ -71,7 +71,7 @@ namespace { } virtual bool runOnModule(Module &M) { return false; } - void print(std::ostream &OS, Module *M) const { + virtual void print(std::ostream &OS, const Module *M) const { getAnalysis().print(OS, M); } };