mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Changes to build successfully with GCC 3.02
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1503 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#define LLVM_ASSEMBLY_CACHED_WRITER_H
|
||||
|
||||
#include "llvm/Assembly/Writer.h"
|
||||
#include <iostream>
|
||||
|
||||
class AssemblyWriter; // Internal private class
|
||||
class SlotCalculator;
|
||||
@@ -19,10 +20,11 @@ class CachedWriter {
|
||||
AssemblyWriter *AW;
|
||||
SlotCalculator *SC;
|
||||
public:
|
||||
ostream &Out;
|
||||
std::ostream &Out;
|
||||
public:
|
||||
CachedWriter(ostream &O = cout) : AW(0), SC(0), Out(O) { }
|
||||
CachedWriter(const Module *M, ostream &O = cout) : AW(0), SC(0), Out(O) {
|
||||
CachedWriter(std::ostream &O = std::cout) : AW(0), SC(0), Out(O) { }
|
||||
CachedWriter(const Module *M, std::ostream &O = std::cout)
|
||||
: AW(0), SC(0), Out(O) {
|
||||
setModule(M);
|
||||
}
|
||||
~CachedWriter();
|
||||
@@ -63,7 +65,7 @@ public:
|
||||
return *this << (const Value*)X;
|
||||
}
|
||||
|
||||
inline CachedWriter &operator<<(ostream &(&Manip)(ostream &)) {
|
||||
inline CachedWriter &operator<<(std::ostream &(&Manip)(std::ostream &)) {
|
||||
Out << Manip; return *this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user