summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-07 04:03:45 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-07 04:03:45 +0000
commit90839368354d2faeb99f727250934a49f85ad08f (patch)
tree45b97277effa6831ae42f8883993323e3a7a6913 /llvm/lib/CodeGen
parent1c48c2deeeaaea525ca7c45490b1fa199acd5c75 (diff)
downloadbcm5719-llvm-90839368354d2faeb99f727250934a49f85ad08f.tar.gz
bcm5719-llvm-90839368354d2faeb99f727250934a49f85ad08f.zip
For PR387:\
Make only one print method to avoid overloaded virtual warnings when \ compiled with -Woverloaded-virtual llvm-svn: 18589
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp2
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index 713f2f892d5..df3c6c2b439 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -169,7 +169,7 @@ bool LiveIntervals::runOnMachineFunction(MachineFunction &fn) {
}
/// print - Implement the dump method.
-void LiveIntervals::print(std::ostream &O) const {
+void LiveIntervals::print(std::ostream &O, const Module* ) const {
O << "********** INTERVALS **********\n";
for (const_iterator I = begin(), E = end(); I != E; ++I)
O << " " << I->second << "\n";
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.h b/llvm/lib/CodeGen/LiveIntervalAnalysis.h
index 036ca132d22..815600861f5 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.h
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.h
@@ -128,7 +128,7 @@ namespace llvm {
virtual bool runOnMachineFunction(MachineFunction&);
/// print - Implement the dump method.
- virtual void print(std::ostream &O) const;
+ virtual void print(std::ostream &O, const Module* = 0) const;
private:
/// computeIntervals - compute live intervals
OpenPOWER on IntegriCloud