From c6a4bf1251f3dc44d2164c0847ce0b19ed7409a2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 25 Jul 2002 15:00:45 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3077 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/DSGraphTraits.h | 5 +++-- include/llvm/Analysis/DataStructure/DSGraphTraits.h | 5 +++-- include/llvm/Analysis/DataStructureGraph.h | 5 +++-- include/llvm/CodeGen/MachineInstrAnnot.h | 2 +- include/llvm/Support/InstIterator.h | 9 +++++++++ lib/Target/SparcV9/MachineInstrAnnot.h | 2 +- tools/as/as.cpp | 1 + tools/llvm-as/as.cpp | 1 + tools/llvm-as/llvm-as.cpp | 1 + 9 files changed, 23 insertions(+), 8 deletions(-) diff --git a/include/llvm/Analysis/DSGraphTraits.h b/include/llvm/Analysis/DSGraphTraits.h index 0a25622d45f..4397f621c12 100644 --- a/include/llvm/Analysis/DSGraphTraits.h +++ b/include/llvm/Analysis/DSGraphTraits.h @@ -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 { +class DSNodeIterator : public forward_iterator { friend class DSNode; DSNode * const Node; unsigned Link; diff --git a/include/llvm/Analysis/DataStructure/DSGraphTraits.h b/include/llvm/Analysis/DataStructure/DSGraphTraits.h index 0a25622d45f..4397f621c12 100644 --- a/include/llvm/Analysis/DataStructure/DSGraphTraits.h +++ b/include/llvm/Analysis/DataStructure/DSGraphTraits.h @@ -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 { +class DSNodeIterator : public forward_iterator { friend class DSNode; DSNode * const Node; unsigned Link; diff --git a/include/llvm/Analysis/DataStructureGraph.h b/include/llvm/Analysis/DataStructureGraph.h index 0a25622d45f..4397f621c12 100644 --- a/include/llvm/Analysis/DataStructureGraph.h +++ b/include/llvm/Analysis/DataStructureGraph.h @@ -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 { +class DSNodeIterator : public forward_iterator { friend class DSNode; DSNode * const Node; unsigned Link; diff --git a/include/llvm/CodeGen/MachineInstrAnnot.h b/include/llvm/CodeGen/MachineInstrAnnot.h index fa80c7297ff..d5f1da2edf5 100644 --- a/include/llvm/CodeGen/MachineInstrAnnot.h +++ b/include/llvm/CodeGen/MachineInstrAnnot.h @@ -93,4 +93,4 @@ public: }; -#endif MACHINE_INSTR_ANNOT_h +#endif diff --git a/include/llvm/Support/InstIterator.h b/include/llvm/Support/InstIterator.h index eb64113b7f4..4f8f2af6c52 100644 --- a/include/llvm/Support/InstIterator.h +++ b/include/llvm/Support/InstIterator.h @@ -33,6 +33,15 @@ public: typedef unsigned difference_type; typedef BIty pointer; typedef IIty reference; + + // Copy constructor... + template + InstIterator(const InstIterator &II) + : BBs(II.BBs), BB(II.BB), BI(II.BI) {} + + template + InstIterator(InstIterator &II) + : BBs(II.BBs), BB(II.BB), BI(II.BI) {} template InstIterator(M &m) : BBs(m.getBasicBlockList()), BB(BBs.begin()) { // begin ctor diff --git a/lib/Target/SparcV9/MachineInstrAnnot.h b/lib/Target/SparcV9/MachineInstrAnnot.h index fa80c7297ff..d5f1da2edf5 100644 --- a/lib/Target/SparcV9/MachineInstrAnnot.h +++ b/lib/Target/SparcV9/MachineInstrAnnot.h @@ -93,4 +93,4 @@ public: }; -#endif MACHINE_INSTR_ANNOT_h +#endif diff --git a/tools/as/as.cpp b/tools/as/as.cpp index c66dd598b9b..36f84568783 100644 --- a/tools/as/as.cpp +++ b/tools/as/as.cpp @@ -17,6 +17,7 @@ #include #include using std::cerr; +using std::string; static cl::opt InputFilename(cl::Positional, cl::desc(""), cl::init("-")); diff --git a/tools/llvm-as/as.cpp b/tools/llvm-as/as.cpp index c66dd598b9b..36f84568783 100644 --- a/tools/llvm-as/as.cpp +++ b/tools/llvm-as/as.cpp @@ -17,6 +17,7 @@ #include #include using std::cerr; +using std::string; static cl::opt InputFilename(cl::Positional, cl::desc(""), cl::init("-")); diff --git a/tools/llvm-as/llvm-as.cpp b/tools/llvm-as/llvm-as.cpp index c66dd598b9b..36f84568783 100644 --- a/tools/llvm-as/llvm-as.cpp +++ b/tools/llvm-as/llvm-as.cpp @@ -17,6 +17,7 @@ #include #include using std::cerr; +using std::string; static cl::opt InputFilename(cl::Positional, cl::desc(""), cl::init("-"));