void destroy() const;
// printValue - Overridden by template class to print out the value type...
- virtual void printValue(ostream &o) const = 0;
+ virtual void printValue(std::ostream &o) const = 0;
// hasSomeData - Return true if some data has been aquired. Avoid printing
// lots of zero counts.
class Statistic : private StatisticBase {
DataType Value;
- virtual void printValue(ostream &o) const { o << Value; }
+ virtual void printValue(std::ostream &o) const { o << Value; }
virtual bool hasSomeData() const { return Value != DataType(); }
public:
// Normal constructor, default initialize data item...
void destroy() const;
// printValue - Overridden by template class to print out the value type...
- virtual void printValue(ostream &o) const = 0;
+ virtual void printValue(std::ostream &o) const = 0;
// hasSomeData - Return true if some data has been aquired. Avoid printing
// lots of zero counts.
class Statistic : private StatisticBase {
DataType Value;
- virtual void printValue(ostream &o) const { o << Value; }
+ virtual void printValue(std::ostream &o) const { o << Value; }
virtual bool hasSomeData() const { return Value != DataType(); }
public:
// Normal constructor, default initialize data item...
typedef ilist_iterator<const NodeTy> const_iterator;
typedef size_t size_type;
typedef ptrdiff_t difference_type;
- typedef reverse_iterator<const_iterator> const_reverse_iterator;
- typedef reverse_iterator<iterator> reverse_iterator;
+ typedef std::reverse_iterator<const_iterator> const_reverse_iterator;
+ typedef std::reverse_iterator<iterator> reverse_iterator;
iplist() : Head(createNode()), Tail(Head) {
setNext(Head, 0);
void destroy() const;
// printValue - Overridden by template class to print out the value type...
- virtual void printValue(ostream &o) const = 0;
+ virtual void printValue(std::ostream &o) const = 0;
// hasSomeData - Return true if some data has been aquired. Avoid printing
// lots of zero counts.
class Statistic : private StatisticBase {
DataType Value;
- virtual void printValue(ostream &o) const { o << Value; }
+ virtual void printValue(std::ostream &o) const { o << Value; }
virtual bool hasSomeData() const { return Value != DataType(); }
public:
// Normal constructor, default initialize data item...
typedef ilist_iterator<const NodeTy> const_iterator;
typedef size_t size_type;
typedef ptrdiff_t difference_type;
- typedef reverse_iterator<const_iterator> const_reverse_iterator;
- typedef reverse_iterator<iterator> reverse_iterator;
+ typedef std::reverse_iterator<const_iterator> const_reverse_iterator;
+ typedef std::reverse_iterator<iterator> reverse_iterator;
iplist() : Head(createNode()), Tail(Head) {
setNext(Head, 0);
// operator< - Allow insertion into a map...
bool operator<(const PointerValSet &PVS) const;
bool operator==(const PointerValSet &PVS) const;
+ bool operator!=(const PointerValSet &PVS) const { return !operator==(PVS); }
const PointerVal &operator[](unsigned i) const { return Vals[i]; }
// operator< - Allow insertion into a map...
bool operator<(const PointerValSet &PVS) const;
bool operator==(const PointerValSet &PVS) const;
+ bool operator!=(const PointerValSet &PVS) const { return !operator==(PVS); }
const PointerVal &operator[](unsigned i) const { return Vals[i]; }
#include "llvm/Bytecode/Writer.h"
class WriteBytecodePass : public Pass {
- ostream *Out; // ostream to print on
+ std::ostream *Out; // ostream to print on
bool DeleteStream;
public:
- inline WriteBytecodePass(ostream *o = &cout, bool DS = false)
+ inline WriteBytecodePass(std::ostream *o = &std::cout, bool DS = false)
: Out(o), DeleteStream(DS) {
}
int ruleForNode,
short* nts,
TargetMachine &Target,
- vector<MachineInstr*>& mvec);
+ std::vector<MachineInstr*>& mvec);
extern bool ThisIsAChainRule (int eruleno);
class CallArgsDescriptor: public Annotation { // Annotation for a MachineInstr
private:
static AnnotationID AID; // AnnotationID for this class
- vector<CallArgInfo> argInfoVec; // Descriptor for each argument
+ std::vector<CallArgInfo> argInfoVec; // Descriptor for each argument
const CallInst* callInstr; // The call instruction == result value
const Value* funcPtr; // Pointer for indirect calls
TmpInstruction* retAddrReg; // Tmp value for return address reg.
// necessary.
//
virtual void cpReg2RegMI(unsigned SrcReg, unsigned DestReg,
- int RegType, vector<MachineInstr*>& mvec) const = 0;
+ int RegType, std::vector<MachineInstr*>& mvec) const = 0;
virtual void cpReg2MemMI(unsigned SrcReg, unsigned DestPtrReg, int Offset,
- int RegTypee, vector<MachineInstr*>& mvec) const=0;
+ int RegTypee, std::vector<MachineInstr*>& mvec) const=0;
virtual void cpMem2RegMI(unsigned SrcPtrReg, int Offset, unsigned DestReg,
- int RegTypee, vector<MachineInstr*>& mvec) const=0;
+ int RegTypee, std::vector<MachineInstr*>& mvec) const=0;
virtual void cpValue2Value(Value *Src, Value *Dest,
- vector<MachineInstr*>& mvec) const = 0;
+ std::vector<MachineInstr*>& mvec) const = 0;
virtual bool isRegVolatile(int RegClassID, int Reg) const = 0;
#include "llvm/Annotation.h"
#include "llvm/AbstractTypeUser.h"
#include "Support/Casting.h"
+#include <ostream>
class User;
class Type;
class CallArgsDescriptor: public Annotation { // Annotation for a MachineInstr
private:
static AnnotationID AID; // AnnotationID for this class
- vector<CallArgInfo> argInfoVec; // Descriptor for each argument
+ std::vector<CallArgInfo> argInfoVec; // Descriptor for each argument
const CallInst* callInstr; // The call instruction == result value
const Value* funcPtr; // Pointer for indirect calls
TmpInstruction* retAddrReg; // Tmp value for return address reg.