mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
remove std::ostream versions of printing stuff for MBB and MF,
upgrading a few things to use raw_ostream git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79811 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -19,17 +19,19 @@
|
||||
#include "llvm/Function.h"
|
||||
#include "llvm/Support/Compiler.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
using namespace llvm;
|
||||
|
||||
namespace {
|
||||
|
||||
class VISIBILITY_HIDDEN Printer : public FunctionPass {
|
||||
static char ID;
|
||||
std::ostream &OS;
|
||||
raw_ostream &OS;
|
||||
|
||||
public:
|
||||
explicit Printer(std::ostream &OS = *cerr);
|
||||
Printer() : FunctionPass(&ID), OS(errs()) {}
|
||||
explicit Printer(raw_ostream &OS) : FunctionPass(&ID), OS(OS) {}
|
||||
|
||||
|
||||
const char *getPassName() const;
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const;
|
||||
@@ -122,12 +124,10 @@ void GCModuleInfo::clear() {
|
||||
|
||||
char Printer::ID = 0;
|
||||
|
||||
FunctionPass *llvm::createGCInfoPrinter(std::ostream &OS) {
|
||||
FunctionPass *llvm::createGCInfoPrinter(raw_ostream &OS) {
|
||||
return new Printer(OS);
|
||||
}
|
||||
|
||||
Printer::Printer(std::ostream &OS)
|
||||
: FunctionPass(&ID), OS(OS) {}
|
||||
|
||||
const char *Printer::getPassName() const {
|
||||
return "Print Garbage Collector Information";
|
||||
|
||||
Reference in New Issue
Block a user