[llvm-commits] CVS: llvm/include/llvm/Analysis/LoopInfo.h Trace.h
Bill Wendling
isanbard at gmail.com
Tue Nov 28 14:45:32 PST 2006
Changes in directory llvm/include/llvm/Analysis:
LoopInfo.h updated: 1.60 -> 1.61
Trace.h updated: 1.4 -> 1.5
---
Log message:
Support for llvm streams.
---
Diffs of the changes: (+8 -2)
LoopInfo.h | 6 ++++++
Trace.h | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
Index: llvm/include/llvm/Analysis/LoopInfo.h
diff -u llvm/include/llvm/Analysis/LoopInfo.h:1.60 llvm/include/llvm/Analysis/LoopInfo.h:1.61
--- llvm/include/llvm/Analysis/LoopInfo.h:1.60 Sun Nov 5 13:31:28 2006
+++ llvm/include/llvm/Analysis/LoopInfo.h Tue Nov 28 16:45:17 2006
@@ -217,6 +217,9 @@
/// the mapping in the LoopInfo class.
void removeBlockFromLoop(BasicBlock *BB);
+ void print(llvm_ostream &O, unsigned Depth = 0) const {
+ if (O.stream()) print(*O.stream(), Depth);
+ }
void print(std::ostream &O, unsigned Depth = 0) const;
void dump() const;
private:
@@ -280,6 +283,9 @@
virtual bool runOnFunction(Function &F);
virtual void releaseMemory();
+ void print(llvm_ostream &O, const Module* = 0) const {
+ if (O.stream()) print(*O.stream());
+ }
void print(std::ostream &O, const Module* = 0) const;
virtual void getAnalysisUsage(AnalysisUsage &AU) const;
Index: llvm/include/llvm/Analysis/Trace.h
diff -u llvm/include/llvm/Analysis/Trace.h:1.4 llvm/include/llvm/Analysis/Trace.h:1.5
--- llvm/include/llvm/Analysis/Trace.h:1.4 Thu Apr 21 15:16:32 2005
+++ llvm/include/llvm/Analysis/Trace.h Tue Nov 28 16:45:17 2006
@@ -18,11 +18,11 @@
#ifndef LLVM_ANALYSIS_TRACE_H
#define LLVM_ANALYSIS_TRACE_H
-#include <iosfwd>
#include <vector>
#include <cassert>
namespace llvm {
+ class llvm_ostream;
class BasicBlock;
class Function;
class Module;
@@ -106,7 +106,7 @@
/// print - Write trace to output stream.
///
- void print (std::ostream &O) const;
+ void print (llvm_ostream &O) const;
/// dump - Debugger convenience method; writes trace to standard error
/// output stream.
More information about the llvm-commits
mailing list