mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-01 13:17:01 +00:00
Replacing std::iostreams with llvm iostreams. Some of these changes involve
adding a temporary wrapper around the ostream to make it friendly to functions expecting an LLVM stream. This should be fixed in the future. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31990 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -17,18 +17,19 @@
|
||||
|
||||
#include "llvm/Pass.h"
|
||||
#include "llvm/Bytecode/Writer.h"
|
||||
#include <iostream>
|
||||
|
||||
namespace llvm {
|
||||
|
||||
class llvm_ostream;
|
||||
|
||||
class WriteBytecodePass : public ModulePass {
|
||||
std::ostream *Out; // ostream to print on
|
||||
llvm_ostream *Out; // ostream to print on
|
||||
bool DeleteStream;
|
||||
bool CompressFile;
|
||||
public:
|
||||
WriteBytecodePass()
|
||||
: Out(&std::cout), DeleteStream(false), CompressFile(true) {}
|
||||
WriteBytecodePass(std::ostream *o, bool DS = false, bool CF = true)
|
||||
: Out(&llvm_cout), DeleteStream(false), CompressFile(true) {}
|
||||
WriteBytecodePass(llvm_ostream *o, bool DS = false, bool CF = true)
|
||||
: Out(o), DeleteStream(DS), CompressFile(CF) {}
|
||||
|
||||
inline ~WriteBytecodePass() {
|
||||
|
Reference in New Issue
Block a user