aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-13 04:11:30 +0000
committerChris Lattner <sabre@nondot.org>2003-11-13 04:11:30 +0000
commita3f5f80f2bfdd966bbacf0d036f2350bf9051b12 (patch)
tree4448156529831d702d1ea4d8315f90b2f137ddb4
parenta190766a54b7eebd199167e3e92d3f3b35dd7b4b (diff)
Remove needless dependence on boost
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9961 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/Support/STLExtras.h5
-rw-r--r--include/llvm/ADT/STLExtras.h5
2 files changed, 4 insertions, 6 deletions
diff --git a/include/Support/STLExtras.h b/include/Support/STLExtras.h
index 06a15734a7..b8e61283ed 100644
--- a/include/Support/STLExtras.h
+++ b/include/Support/STLExtras.h
@@ -19,7 +19,6 @@
#include <functional>
#include "Support/iterator"
-#include "boost/type_traits/transform_traits.hpp"
namespace llvm {
@@ -260,8 +259,8 @@ namespace
{
template <typename T1, typename T2>
struct tier {
- typedef typename boost::add_reference<T1>::type first_type;
- typedef typename boost::add_reference<T2>::type second_type;
+ typedef T1 &first_type;
+ typedef T2 &second_type;
first_type first;
second_type second;
diff --git a/include/llvm/ADT/STLExtras.h b/include/llvm/ADT/STLExtras.h
index 06a15734a7..b8e61283ed 100644
--- a/include/llvm/ADT/STLExtras.h
+++ b/include/llvm/ADT/STLExtras.h
@@ -19,7 +19,6 @@
#include <functional>
#include "Support/iterator"
-#include "boost/type_traits/transform_traits.hpp"
namespace llvm {
@@ -260,8 +259,8 @@ namespace
{
template <typename T1, typename T2>
struct tier {
- typedef typename boost::add_reference<T1>::type first_type;
- typedef typename boost::add_reference<T2>::type second_type;
+ typedef T1 &first_type;
+ typedef T2 &second_type;
first_type first;
second_type second;