diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-12-07 04:03:45 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-12-07 04:03:45 +0000 |
commit | ce9653ce449f1409815547e1bf60abcd1332d2c9 (patch) | |
tree | 15be737ca897bafc75763e98342aeeabebb20797 /tools/opt/PrintSCC.cpp | |
parent | ead87b671278379f92890fddd859a301bb68f462 (diff) | |
download | external_llvm-ce9653ce449f1409815547e1bf60abcd1332d2c9.zip external_llvm-ce9653ce449f1409815547e1bf60abcd1332d2c9.tar.gz external_llvm-ce9653ce449f1409815547e1bf60abcd1332d2c9.tar.bz2 |
For PR387:\
Make only one print method to avoid overloaded virtual warnings when \
compiled with -Woverloaded-virtual
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18589 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt/PrintSCC.cpp')
-rw-r--r-- | tools/opt/PrintSCC.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/opt/PrintSCC.cpp b/tools/opt/PrintSCC.cpp index 5fe1eec..d37c4ca 100644 --- a/tools/opt/PrintSCC.cpp +++ b/tools/opt/PrintSCC.cpp @@ -37,7 +37,7 @@ namespace { struct CFGSCC : public FunctionPass { bool runOnFunction(Function& func); - void print(std::ostream &O) const { } + void print(std::ostream &O, const Module* = 0) const { } virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.setPreservesAll(); @@ -48,7 +48,7 @@ namespace { // run - Print out SCCs in the call graph for the specified module. bool runOnModule(Module &M); - void print(std::ostream &O) const { } + void print(std::ostream &O, const Module* = 0) const { } // getAnalysisUsage - This pass requires the CallGraph. virtual void getAnalysisUsage(AnalysisUsage &AU) const { |