projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add llvm::triple constructor from arch, vendor, os strings, and recognize
[oota-llvm.git]
/
include
/
llvm
/
ADT
/
DepthFirstIterator.h
diff --git
a/include/llvm/ADT/DepthFirstIterator.h
b/include/llvm/ADT/DepthFirstIterator.h
index 0806aa4251381a202abdaf7bbafbfe94d220c70e..517768f402df9caf03f440906fd06b8c5af258ee 100644
(file)
--- a/
include/llvm/ADT/DepthFirstIterator.h
+++ b/
include/llvm/ADT/DepthFirstIterator.h
@@
-2,8
+2,8
@@
//
// The LLVM Compiler Infrastructure
//
//
// The LLVM Compiler Infrastructure
//
-// This file
was developed by the LLVM research group and is distributed under
-//
the University of Illinois Open Source
License. See LICENSE.TXT for details.
+// This file
is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
//
//===----------------------------------------------------------------------===//
//
@@
-34,10
+34,10
@@
#define LLVM_ADT_DEPTHFIRSTITERATOR_H
#include "llvm/ADT/GraphTraits.h"
#define LLVM_ADT_DEPTHFIRSTITERATOR_H
#include "llvm/ADT/GraphTraits.h"
-#include "llvm/ADT/iterator"
+#include "llvm/ADT/iterator
.h
"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/SmallPtrSet.h"
-#include <vector>
#include <set>
#include <set>
+#include <vector>
namespace llvm {
namespace llvm {
@@
-200,14
+200,12
@@
struct idf_iterator : public df_iterator<Inverse<T>, SetTy, External> {
template <class T>
idf_iterator<T> idf_begin(const T& G) {
template <class T>
idf_iterator<T> idf_begin(const T& G) {
- Inverse<T> DummyG;
- return idf_iterator<T>::begin(DummyG);
+ return idf_iterator<T>::begin(Inverse<T>(G));
}
template <class T>
idf_iterator<T> idf_end(const T& G){
}
template <class T>
idf_iterator<T> idf_end(const T& G){
- Inverse<T> DummyG;
- return idf_iterator<T>::end(DummyG);
+ return idf_iterator<T>::end(Inverse<T>(G));
}
// Provide global definitions of external inverse depth first iterators...
}
// Provide global definitions of external inverse depth first iterators...
@@
-221,14
+219,12
@@
struct idf_ext_iterator : public idf_iterator<T, SetTy, true> {
template <class T, class SetTy>
idf_ext_iterator<T, SetTy> idf_ext_begin(const T& G, SetTy &S) {
template <class T, class SetTy>
idf_ext_iterator<T, SetTy> idf_ext_begin(const T& G, SetTy &S) {
- Inverse<T> DummyG(G);
- return idf_ext_iterator<T, SetTy>::begin(DummyG, S);
+ return idf_ext_iterator<T, SetTy>::begin(Inverse<T>(G), S);
}
template <class T, class SetTy>
idf_ext_iterator<T, SetTy> idf_ext_end(const T& G, SetTy &S) {
}
template <class T, class SetTy>
idf_ext_iterator<T, SetTy> idf_ext_end(const T& G, SetTy &S) {
- Inverse<T> DummyG(G);
- return idf_ext_iterator<T, SetTy>::end(DummyG, S);
+ return idf_ext_iterator<T, SetTy>::end(Inverse<T>(G), S);
}
} // End llvm namespace
}
} // End llvm namespace