[llvm-commits] CVS: llvm/include/llvm/Module.h Pass.h Type.h Value.h
Bill Wendling
isanbard at gmail.com
Tue Nov 28 14:21:50 PST 2006
Changes in directory llvm/include/llvm:
Module.h updated: 1.74 -> 1.75
Pass.h updated: 1.54 -> 1.55
Type.h updated: 1.92 -> 1.93
Value.h updated: 1.85 -> 1.86
---
Log message:
Added a temporary hack to get the llvm-streams to work for future checkins.
---
Diffs of the changes: (+18 -0)
Module.h | 6 ++++++
Pass.h | 4 ++++
Type.h | 4 ++++
Value.h | 4 ++++
4 files changed, 18 insertions(+)
Index: llvm/include/llvm/Module.h
diff -u llvm/include/llvm/Module.h:1.74 llvm/include/llvm/Module.h:1.75
--- llvm/include/llvm/Module.h:1.74 Tue Oct 17 21:21:12 2006
+++ llvm/include/llvm/Module.h Tue Nov 28 16:21:29 2006
@@ -295,8 +295,14 @@
/// @{
public:
/// Print the module to an output stream
+ void print(llvm_ostream &OS) const {
+ if (OS.stream()) print(*OS.stream(), 0);
+ }
void print(std::ostream &OS) const { print(OS, 0); }
/// Print the module to an output stream with AssemblyAnnotationWriter.
+ void print(llvm_ostream &OS, AssemblyAnnotationWriter *AAW) const {
+ if (OS.stream()) print(*OS.stream(), AAW);
+ }
void print(std::ostream &OS, AssemblyAnnotationWriter *AAW) const;
/// Dump the module to std::cerr (for debugging).
void dump() const;
Index: llvm/include/llvm/Pass.h
diff -u llvm/include/llvm/Pass.h:1.54 llvm/include/llvm/Pass.h:1.55
--- llvm/include/llvm/Pass.h:1.54 Sun Aug 27 19:09:00 2006
+++ llvm/include/llvm/Pass.h Tue Nov 28 16:21:29 2006
@@ -29,6 +29,7 @@
#ifndef LLVM_PASS_H
#define LLVM_PASS_H
+#include "llvm/Support/Streams.h"
#include <vector>
#include <map>
#include <iosfwd>
@@ -100,6 +101,9 @@
/// provide the Module* in case the analysis doesn't need it it can just be
/// ignored.
///
+ void print(llvm_ostream &O, const Module *M) const {
+ if (O.stream()) print(*O.stream(), M);
+ }
virtual void print(std::ostream &O, const Module *M) const;
void dump() const; // dump - call print(std::cerr, 0);
Index: llvm/include/llvm/Type.h
diff -u llvm/include/llvm/Type.h:1.92 llvm/include/llvm/Type.h:1.93
--- llvm/include/llvm/Type.h:1.92 Sun Nov 26 19:05:09 2006
+++ llvm/include/llvm/Type.h Tue Nov 28 16:21:29 2006
@@ -14,6 +14,7 @@
#include "llvm/AbstractTypeUser.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/DataTypes.h"
+#include "llvm/Support/Streams.h"
#include "llvm/ADT/GraphTraits.h"
#include "llvm/ADT/iterator"
#include <string>
@@ -135,6 +136,9 @@
///
mutable std::vector<AbstractTypeUser *> AbstractTypeUsers;
public:
+ void print(llvm_ostream &O) const {
+ if (O.stream()) print(*O.stream());
+ }
void print(std::ostream &O) const;
/// @brief Debugging support: print to stderr
Index: llvm/include/llvm/Value.h
diff -u llvm/include/llvm/Value.h:1.85 llvm/include/llvm/Value.h:1.86
--- llvm/include/llvm/Value.h:1.85 Fri Oct 20 02:07:23 2006
+++ llvm/include/llvm/Value.h Tue Nov 28 16:21:29 2006
@@ -18,6 +18,7 @@
#include "llvm/AbstractTypeUser.h"
#include "llvm/Use.h"
#include "llvm/Support/Casting.h"
+#include "llvm/Support/Streams.h"
#include <string>
namespace llvm {
@@ -74,6 +75,9 @@
/// print - Implement operator<< on Value...
///
+ void print(llvm_ostream &O) const {
+ if (O.stream()) print(*O.stream());
+ }
virtual void print(std::ostream &O) const = 0;
/// All values are typed, get the type of this value.
More information about the llvm-commits
mailing list