forked from OSchip/llvm-project
parent
83dbd7a432
commit
13d62b60bd
|
@ -206,10 +206,6 @@ public:
|
|||
const SCEV *getReplacementExpr(const IVStrideUse &U) const;
|
||||
|
||||
void print(raw_ostream &OS, const Module* = 0) const;
|
||||
virtual void print(std::ostream &OS, const Module* = 0) const;
|
||||
void print(std::ostream *OS, const Module* M = 0) const {
|
||||
if (OS) print(*OS, M);
|
||||
}
|
||||
|
||||
/// dump - This method is used for debugging.
|
||||
void dump() const;
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/Analysis/LoopPass.h"
|
||||
#include "llvm/Support/Allocator.h"
|
||||
#include <iosfwd>
|
||||
|
||||
namespace llvm {
|
||||
|
||||
|
@ -107,7 +106,6 @@ public:
|
|||
virtual void releaseMemory();
|
||||
virtual void getAnalysisUsage(AnalysisUsage&) const;
|
||||
void print(raw_ostream&, const Module* = 0) const;
|
||||
virtual void print(std::ostream&, const Module* = 0) const;
|
||||
|
||||
private:
|
||||
FoldingSet<DependencePair> Pairs;
|
||||
|
|
|
@ -98,7 +98,6 @@ namespace llvm {
|
|||
virtual bool runOnFunction(Function &F);
|
||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const;
|
||||
void print(raw_ostream &OS, const Module* = 0) const;
|
||||
virtual void print(std::ostream &OS, const Module* = 0) const;
|
||||
private:
|
||||
Function *FF;
|
||||
TargetData *TD;
|
||||
|
|
|
@ -30,7 +30,6 @@
|
|||
#include "llvm/Support/ConstantRange.h"
|
||||
#include "llvm/ADT/FoldingSet.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include <iosfwd>
|
||||
#include <map>
|
||||
|
||||
namespace llvm {
|
||||
|
@ -109,8 +108,6 @@ namespace llvm {
|
|||
/// specified stream. This should really only be used for debugging
|
||||
/// purposes.
|
||||
virtual void print(raw_ostream &OS) const = 0;
|
||||
void print(std::ostream &OS) const;
|
||||
void print(std::ostream *OS) const { if (OS) print(*OS); }
|
||||
|
||||
/// dump - This method is used for debugging.
|
||||
///
|
||||
|
@ -122,11 +119,6 @@ namespace llvm {
|
|||
return OS;
|
||||
}
|
||||
|
||||
inline std::ostream &operator<<(std::ostream &OS, const SCEV &S) {
|
||||
S.print(OS);
|
||||
return OS;
|
||||
}
|
||||
|
||||
/// SCEVCouldNotCompute - An object of this class is returned by queries that
|
||||
/// could not be answered. For example, if you ask for the number of
|
||||
/// iterations of a linked-list traversal loop, you will get one of these.
|
||||
|
|
|
@ -345,11 +345,6 @@ void IVUsers::print(raw_ostream &OS, const Module *M) const {
|
|||
}
|
||||
}
|
||||
|
||||
void IVUsers::print(std::ostream &o, const Module *M) const {
|
||||
raw_os_ostream OS(o);
|
||||
print(OS, M);
|
||||
}
|
||||
|
||||
void IVUsers::dump() const {
|
||||
print(errs());
|
||||
}
|
||||
|
|
|
@ -350,8 +350,3 @@ void LoopDependenceAnalysis::print(raw_ostream &OS, const Module*) const {
|
|||
// TODO: doc why const_cast is safe
|
||||
PrintLoopInfo(OS, const_cast<LoopDependenceAnalysis*>(this), this->L);
|
||||
}
|
||||
|
||||
void LoopDependenceAnalysis::print(std::ostream &OS, const Module *M) const {
|
||||
raw_os_ostream os(OS);
|
||||
print(os, M);
|
||||
}
|
||||
|
|
|
@ -23,9 +23,9 @@
|
|||
#include "llvm/Support/InstIterator.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include "llvm/Target/TargetData.h"
|
||||
using namespace llvm;
|
||||
|
||||
namespace llvm {
|
||||
char PointerTracking::ID=0;
|
||||
char PointerTracking::ID = 0;
|
||||
PointerTracking::PointerTracking() : FunctionPass(&ID) {}
|
||||
|
||||
bool PointerTracking::runOnFunction(Function &F) {
|
||||
|
@ -252,11 +252,5 @@ void PointerTracking::print(raw_ostream &OS, const Module* M) const {
|
|||
}
|
||||
}
|
||||
|
||||
void PointerTracking::print(std::ostream &o, const Module* M) const {
|
||||
raw_os_ostream OS(o);
|
||||
print(OS, M);
|
||||
}
|
||||
|
||||
static RegisterPass<PointerTracking> X("pointertracking",
|
||||
"Track pointer bounds", false, true);
|
||||
}
|
||||
|
|
|
@ -121,11 +121,6 @@ void SCEV::dump() const {
|
|||
errs() << '\n';
|
||||
}
|
||||
|
||||
void SCEV::print(std::ostream &o) const {
|
||||
raw_os_ostream OS(o);
|
||||
print(OS);
|
||||
}
|
||||
|
||||
bool SCEV::isZero() const {
|
||||
if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(this))
|
||||
return SC->getValue()->isZero();
|
||||
|
|
Loading…
Reference in New Issue