From: Chris Lattner Date: Wed, 24 Jul 2002 21:16:42 +0000 (+0000) Subject: Move hash_* extension headers from ext/ to Support/ so that we can support X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=417d31c202bf42c1f9db1afa1d2e6730c6fbd566;p=oota-llvm.git Move hash_* extension headers from ext/ to Support/ so that we can support GCC 2.95, GCC 3.0.4 and GCC 3.1 all concurrently, without having to delete headers after a chackou. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3055 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/Support/HashExtras.h b/include/Support/HashExtras.h index d7e48a3b625..da9e3f5cbad 100644 --- a/include/Support/HashExtras.h +++ b/include/Support/HashExtras.h @@ -11,7 +11,7 @@ #define LLVM_SUPPORT_HASHEXTRAS_H #include -#include +#include // Cannot specialize hash template from outside of the std namespace. namespace std { diff --git a/include/Support/hash_map b/include/Support/hash_map new file mode 100644 index 00000000000..aefcc289e2e --- /dev/null +++ b/include/Support/hash_map @@ -0,0 +1,6 @@ +#if __GNUC__ == 3 +#include +using __gnu_cxx::hash_map; +#else +#include +#endif diff --git a/include/Support/hash_set b/include/Support/hash_set new file mode 100644 index 00000000000..f95cc363c74 --- /dev/null +++ b/include/Support/hash_set @@ -0,0 +1,6 @@ +#if __GNUC__==3 +#include +using __gnu_cxx::hash_set; +#else +#include +#endif diff --git a/include/llvm/ADT/HashExtras.h b/include/llvm/ADT/HashExtras.h index d7e48a3b625..da9e3f5cbad 100644 --- a/include/llvm/ADT/HashExtras.h +++ b/include/llvm/ADT/HashExtras.h @@ -11,7 +11,7 @@ #define LLVM_SUPPORT_HASHEXTRAS_H #include -#include +#include // Cannot specialize hash template from outside of the std namespace. namespace std {