summaryrefslogtreecommitdiff
path: root/lib/Analysis/Trace.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Analysis/Trace.cpp')
-rw-r--r--lib/Analysis/Trace.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Analysis/Trace.cpp b/lib/Analysis/Trace.cpp
index d0457557c8..a0aa955ebe 100644
--- a/lib/Analysis/Trace.cpp
+++ b/lib/Analysis/Trace.cpp
@@ -25,14 +25,13 @@ Function *Trace::getFunction() const {
return getEntryBasicBlock()->getParent();
}
-
Module *Trace::getModule() const {
return getFunction()->getParent();
}
/// print - Write trace to output stream.
///
-void Trace::print(llvm_ostream &O) const {
+void Trace::print(OStream &O) const {
Function *F = getFunction ();
O << "; Trace from function " << F->getName() << ", blocks:\n";
for (const_iterator i = begin(), e = end(); i != e; ++i) {
@@ -48,5 +47,5 @@ void Trace::print(llvm_ostream &O) const {
/// output stream.
///
void Trace::dump() const {
- print(llvm_cerr);
+ print(cerr);
}