mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
eliminate the "Value" printing methods that print to a std::ostream.
This required converting a bunch of stuff off DOUT and other cleanups. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79819 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -18,7 +18,7 @@
|
||||
#include "llvm/Analysis/Trace.h"
|
||||
#include "llvm/Function.h"
|
||||
#include "llvm/Assembly/Writer.h"
|
||||
#include "llvm/Support/Streams.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
using namespace llvm;
|
||||
|
||||
Function *Trace::getFunction() const {
|
||||
@ -31,8 +31,8 @@ Module *Trace::getModule() const {
|
||||
|
||||
/// print - Write trace to output stream.
|
||||
///
|
||||
void Trace::print(std::ostream &O) const {
|
||||
Function *F = getFunction ();
|
||||
void Trace::print(raw_ostream &O) const {
|
||||
Function *F = getFunction();
|
||||
O << "; Trace from function " << F->getNameStr() << ", blocks:\n";
|
||||
for (const_iterator i = begin(), e = end(); i != e; ++i) {
|
||||
O << "; ";
|
||||
@ -46,5 +46,5 @@ void Trace::print(std::ostream &O) const {
|
||||
/// output stream.
|
||||
///
|
||||
void Trace::dump() const {
|
||||
print(cerr);
|
||||
print(errs());
|
||||
}
|
||||
|
Reference in New Issue
Block a user