*** empty log message ***
authorChris Lattner <sabre@nondot.org>
Thu, 25 Jul 2002 15:00:45 +0000 (15:00 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 25 Jul 2002 15:00:45 +0000 (15:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3077 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DSGraphTraits.h
include/llvm/Analysis/DataStructure/DSGraphTraits.h
include/llvm/Analysis/DataStructureGraph.h
include/llvm/CodeGen/MachineInstrAnnot.h
include/llvm/Support/InstIterator.h
lib/Target/SparcV9/MachineInstrAnnot.h
tools/as/as.cpp
tools/llvm-as/as.cpp
tools/llvm-as/llvm-as.cpp

index 0a25622d45f3fb473a29e3b8253faaf93e7009c7..4397f621c126e3449c66785a7c42997cca3b68dd 100644 (file)
@@ -9,10 +9,11 @@
 #ifndef LLVM_ANALYSIS_DATASTRUCTURE_GRAPH_H
 #define LLVM_ANALYSIS_DATASTRUCTURE_GRAPH_H
 
-#include "Support/GraphTraits.h"
 #include "llvm/Analysis/DataStructure.h"
+#include "Support/GraphTraits.h"
+#include "Support/iterator"
 
-class DSNodeIterator : public std::forward_iterator<DSNode, ptrdiff_t> {
+class DSNodeIterator : public forward_iterator<DSNode, ptrdiff_t> {
   friend class DSNode;
   DSNode * const Node;
   unsigned Link;
index 0a25622d45f3fb473a29e3b8253faaf93e7009c7..4397f621c126e3449c66785a7c42997cca3b68dd 100644 (file)
@@ -9,10 +9,11 @@
 #ifndef LLVM_ANALYSIS_DATASTRUCTURE_GRAPH_H
 #define LLVM_ANALYSIS_DATASTRUCTURE_GRAPH_H
 
-#include "Support/GraphTraits.h"
 #include "llvm/Analysis/DataStructure.h"
+#include "Support/GraphTraits.h"
+#include "Support/iterator"
 
-class DSNodeIterator : public std::forward_iterator<DSNode, ptrdiff_t> {
+class DSNodeIterator : public forward_iterator<DSNode, ptrdiff_t> {
   friend class DSNode;
   DSNode * const Node;
   unsigned Link;
index 0a25622d45f3fb473a29e3b8253faaf93e7009c7..4397f621c126e3449c66785a7c42997cca3b68dd 100644 (file)
@@ -9,10 +9,11 @@
 #ifndef LLVM_ANALYSIS_DATASTRUCTURE_GRAPH_H
 #define LLVM_ANALYSIS_DATASTRUCTURE_GRAPH_H
 
-#include "Support/GraphTraits.h"
 #include "llvm/Analysis/DataStructure.h"
+#include "Support/GraphTraits.h"
+#include "Support/iterator"
 
-class DSNodeIterator : public std::forward_iterator<DSNode, ptrdiff_t> {
+class DSNodeIterator : public forward_iterator<DSNode, ptrdiff_t> {
   friend class DSNode;
   DSNode * const Node;
   unsigned Link;
index fa80c7297ffba7b0a5db87944b958602e432c536..d5f1da2edf55aa576bc1895aa255ab5b8933224d 100644 (file)
@@ -93,4 +93,4 @@ public:
 };
 
 
-#endif MACHINE_INSTR_ANNOT_h
+#endif
index eb64113b7f423fa4017e3316fcd2e13eb5a663e7..4f8f2af6c52f494f31b1c78e1f240f1cf8019bde 100644 (file)
@@ -33,6 +33,15 @@ public:
   typedef unsigned                        difference_type;
   typedef BIty                            pointer;
   typedef IIty                            reference;
+
+  // Copy constructor...
+  template<typename A, typename B, typename C, typename D>
+  InstIterator(const InstIterator<A,B,C,D> &II)
+    : BBs(II.BBs), BB(II.BB), BI(II.BI) {}
+
+  template<typename A, typename B, typename C, typename D>
+  InstIterator(InstIterator<A,B,C,D> &II)
+    : BBs(II.BBs), BB(II.BB), BI(II.BI) {}
   
   template<class M> InstIterator(M &m) 
     : BBs(m.getBasicBlockList()), BB(BBs.begin()) {    // begin ctor
index fa80c7297ffba7b0a5db87944b958602e432c536..d5f1da2edf55aa576bc1895aa255ab5b8933224d 100644 (file)
@@ -93,4 +93,4 @@ public:
 };
 
 
-#endif MACHINE_INSTR_ANNOT_h
+#endif
index c66dd598b9bb8f4f4cab59f367136ad4571be2dd..36f845687838cd1fafa77b588b30244157dc8ebb 100644 (file)
@@ -17,6 +17,7 @@
 #include <fstream>
 #include <memory>
 using std::cerr;
+using std::string;
 
 static cl::opt<string> 
 InputFilename(cl::Positional, cl::desc("<input .llvm file>"), cl::init("-"));
index c66dd598b9bb8f4f4cab59f367136ad4571be2dd..36f845687838cd1fafa77b588b30244157dc8ebb 100644 (file)
@@ -17,6 +17,7 @@
 #include <fstream>
 #include <memory>
 using std::cerr;
+using std::string;
 
 static cl::opt<string> 
 InputFilename(cl::Positional, cl::desc("<input .llvm file>"), cl::init("-"));
index c66dd598b9bb8f4f4cab59f367136ad4571be2dd..36f845687838cd1fafa77b588b30244157dc8ebb 100644 (file)
@@ -17,6 +17,7 @@
 #include <fstream>
 #include <memory>
 using std::cerr;
+using std::string;
 
 static cl::opt<string> 
 InputFilename(cl::Positional, cl::desc("<input .llvm file>"), cl::init("-"));