summaryrefslogtreecommitdiff
path: root/tools/opt/AnalysisWrappers.cpp
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2006-04-18 23:45:19 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2006-04-18 23:45:19 +0000
commit0cafa92371ce020ce19e9aacf1a96f8c8a7bb47a (patch)
tree4eef29df13c9c709a24cfcdb228c44940062b46b /tools/opt/AnalysisWrappers.cpp
parent1c212dec249ddea75b721ad32634031cb9ef5dcb (diff)
downloadllvm-0cafa92371ce020ce19e9aacf1a96f8c8a7bb47a.tar.gz
llvm-0cafa92371ce020ce19e9aacf1a96f8c8a7bb47a.tar.bz2
llvm-0cafa92371ce020ce19e9aacf1a96f8c8a7bb47a.tar.xz
fix printing call graphs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27820 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt/AnalysisWrappers.cpp')
-rw-r--r--tools/opt/AnalysisWrappers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/opt/AnalysisWrappers.cpp b/tools/opt/AnalysisWrappers.cpp
index 8e5c3339bf..b371d50ef3 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<CallGraph>().print(OS, M);
}
};