/// 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:
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;
#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;
/// 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.