changes to make it compatible with 64bit gcc
authorAnand Shukla <ashukla@cs.uiuc.edu>
Tue, 25 Jun 2002 20:22:25 +0000 (20:22 +0000)
committerAnand Shukla <ashukla@cs.uiuc.edu>
Tue, 25 Jun 2002 20:22:25 +0000 (20:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2786 91177308-0d34-0410-b5e6-96231b3b80d8

13 files changed:
include/Support/Statistic.h
include/Support/StatisticReporter.h
include/Support/ilist
include/llvm/ADT/Statistic.h
include/llvm/ADT/ilist
include/llvm/Analysis/DataStructure.h
include/llvm/Analysis/DataStructure/DataStructure.h
include/llvm/Bytecode/WriteBytecodePass.h
include/llvm/CodeGen/InstrSelection.h
include/llvm/CodeGen/MachineInstrAnnot.h
include/llvm/Target/TargetRegInfo.h
include/llvm/Value.h
lib/Target/SparcV9/MachineInstrAnnot.h

index 453af34fe019d91020a1ac5f0bc9347ff5dd116a..8f6ed79da8fb4910e28b216d0e1f778f79899600 100644 (file)
@@ -52,7 +52,7 @@ protected:
   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.
@@ -65,7 +65,7 @@ template <typename DataType=unsigned>
 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...
index 453af34fe019d91020a1ac5f0bc9347ff5dd116a..8f6ed79da8fb4910e28b216d0e1f778f79899600 100644 (file)
@@ -52,7 +52,7 @@ protected:
   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.
@@ -65,7 +65,7 @@ template <typename DataType=unsigned>
 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...
index 04cf596698d639eae8e51d68c41038a8906242f4..7e666c6d97f167c1550f28386acd8ccb25baf423 100644 (file)
@@ -167,8 +167,8 @@ public:
   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);
index 453af34fe019d91020a1ac5f0bc9347ff5dd116a..8f6ed79da8fb4910e28b216d0e1f778f79899600 100644 (file)
@@ -52,7 +52,7 @@ protected:
   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.
@@ -65,7 +65,7 @@ template <typename DataType=unsigned>
 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...
index 04cf596698d639eae8e51d68c41038a8906242f4..7e666c6d97f167c1550f28386acd8ccb25baf423 100644 (file)
@@ -167,8 +167,8 @@ public:
   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);
index 5f1617c0a02a0b5872041820a8aee821edf84da4..c9b20180105065b467d489a8e767282d03148f0a 100644 (file)
@@ -73,6 +73,7 @@ public:
   // 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]; }
 
index 5f1617c0a02a0b5872041820a8aee821edf84da4..c9b20180105065b467d489a8e767282d03148f0a 100644 (file)
@@ -73,6 +73,7 @@ public:
   // 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]; }
 
index 297fbb76e1766644b17a78982e76673cf24b4488..3e6d7fef7150f6f8dfff16f169106bd038732d00 100644 (file)
 #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) {
   }
 
index 1a3023018d13033026c0fdc204210e6f5f005f64..18f4b7fc628d48b726f16efccfe1c9bb83f3d392 100644 (file)
@@ -30,7 +30,7 @@ extern void   GetInstructionsByRule   (InstructionNode* subtreeRoot,
                                         int ruleForNode,
                                         short* nts,
                                         TargetMachine &Target,
-                                         vector<MachineInstr*>& mvec);
+                                         std::vector<MachineInstr*>& mvec);
 
 extern bool    ThisIsAChainRule        (int eruleno);
 
index 79298d5fb743b7d68c41f5405bac46a5462335ea..b16408f9a36664c891e86468579a11b8c9396eb0 100644 (file)
@@ -62,7 +62,7 @@ public:
 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.
index 99a89feb2e8126c8679eea4b672fe6cc4d117eb2..af4750bba2b2451539233cb676aa5fc384a5144e 100644 (file)
@@ -144,16 +144,16 @@ public:
   // 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;
   
index 573ca174dee689d0282d7fb585eac3f6574b7da4..e8930e6aca44ddabd56e55ef7461f75b39a24721 100644 (file)
@@ -14,6 +14,7 @@
 #include "llvm/Annotation.h"
 #include "llvm/AbstractTypeUser.h"
 #include "Support/Casting.h"
+#include <ostream>
 
 class User;
 class Type;
index 79298d5fb743b7d68c41f5405bac46a5462335ea..b16408f9a36664c891e86468579a11b8c9396eb0 100644 (file)
@@ -62,7 +62,7 @@ public:
 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.