summaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/DIE.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-23 01:01:17 +0000
committerChris Lattner <sabre@nondot.org>2009-08-23 01:01:17 +0000
commitb01acfae5bf66d82eda7c12c473e5a51831f9382 (patch)
tree471f19b4e9ab3b46394ce40fbeb7f499da52cd93 /lib/CodeGen/AsmPrinter/DIE.h
parent623dd141b4c09b29de2c52d55328a787205d9340 (diff)
downloadllvm-b01acfae5bf66d82eda7c12c473e5a51831f9382.tar.gz
llvm-b01acfae5bf66d82eda7c12c473e5a51831f9382.tar.bz2
llvm-b01acfae5bf66d82eda7c12c473e5a51831f9382.tar.xz
convert the DIE printing stuff to use raw_ostream instead of std::ostream.
Tweak #includes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79800 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DIE.h')
-rw-r--r--lib/CodeGen/AsmPrinter/DIE.h34
1 files changed, 12 insertions, 22 deletions
diff --git a/lib/CodeGen/AsmPrinter/DIE.h b/lib/CodeGen/AsmPrinter/DIE.h
index 5b60327f90..62b51ecd18 100644
--- a/lib/CodeGen/AsmPrinter/DIE.h
+++ b/lib/CodeGen/AsmPrinter/DIE.h
@@ -19,8 +19,7 @@
#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Dwarf.h"
-#include "llvm/Support/raw_ostream.h"
-#include <iosfwd>
+#include <vector>
namespace llvm {
class AsmPrinter;
@@ -103,10 +102,7 @@ namespace llvm {
void Emit(const AsmPrinter *Asm) const;
#ifndef NDEBUG
- void print(std::ostream *O) {
- if (O) print(*O);
- }
- void print(std::ostream &O);
+ void print(raw_ostream &O);
void dump();
#endif
};
@@ -198,10 +194,7 @@ namespace llvm {
void Profile(FoldingSetNodeID &ID) ;
#ifndef NDEBUG
- void print(std::ostream *O, unsigned IncIndent = 0) {
- if (O) print(*O, IncIndent);
- }
- void print(std::ostream &O, unsigned IncIndent = 0);
+ void print(raw_ostream &O, unsigned IncIndent = 0);
void dump();
#endif
};
@@ -248,10 +241,7 @@ namespace llvm {
static bool classof(const DIEValue *) { return true; }
#ifndef NDEBUG
- void print(std::ostream *O) {
- if (O) print(*O);
- }
- virtual void print(std::ostream &O) = 0;
+ virtual void print(raw_ostream &O) = 0;
void dump();
#endif
};
@@ -297,7 +287,7 @@ namespace llvm {
static bool classof(const DIEValue *I) { return I->getType() == isInteger; }
#ifndef NDEBUG
- virtual void print(std::ostream &O);
+ virtual void print(raw_ostream &O);
#endif
};
@@ -329,7 +319,7 @@ namespace llvm {
static bool classof(const DIEValue *S) { return S->getType() == isString; }
#ifndef NDEBUG
- virtual void print(std::ostream &O);
+ virtual void print(raw_ostream &O);
#endif
};
@@ -359,7 +349,7 @@ namespace llvm {
static bool classof(const DIEValue *L) { return L->getType() == isLabel; }
#ifndef NDEBUG
- virtual void print(std::ostream &O);
+ virtual void print(raw_ostream &O);
#endif
};
@@ -392,7 +382,7 @@ namespace llvm {
}
#ifndef NDEBUG
- virtual void print(std::ostream &O);
+ virtual void print(raw_ostream &O);
#endif
};
@@ -431,7 +421,7 @@ namespace llvm {
}
#ifndef NDEBUG
- virtual void print(std::ostream &O);
+ virtual void print(raw_ostream &O);
#endif
};
@@ -464,7 +454,7 @@ namespace llvm {
static bool classof(const DIEValue *D) { return D->getType() == isDelta; }
#ifndef NDEBUG
- virtual void print(std::ostream &O);
+ virtual void print(raw_ostream &O);
#endif
};
@@ -500,7 +490,7 @@ namespace llvm {
static bool classof(const DIEValue *E) { return E->getType() == isEntry; }
#ifndef NDEBUG
- virtual void print(std::ostream &O);
+ virtual void print(raw_ostream &O);
#endif
};
@@ -544,7 +534,7 @@ namespace llvm {
static bool classof(const DIEValue *E) { return E->getType() == isBlock; }
#ifndef NDEBUG
- virtual void print(std::ostream &O);
+ virtual void print(raw_ostream &O);
#endif
};