summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-24 21:16:42 +0000
committerChris Lattner <sabre@nondot.org>2002-07-24 21:16:42 +0000
commitf0f2da260f40cf3717b7fe162808472a8846ca36 (patch)
tree4c66817db609fc1c37827f4eac8bbf06bb83532a /llvm
parentcfbda0cced89ec3014187d29f15672c7f8f8ad2e (diff)
downloadbcm5719-llvm-f0f2da260f40cf3717b7fe162808472a8846ca36.tar.gz
bcm5719-llvm-f0f2da260f40cf3717b7fe162808472a8846ca36.zip
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. llvm-svn: 3055
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/Support/HashExtras.h2
-rw-r--r--llvm/include/Support/hash_map6
-rw-r--r--llvm/include/Support/hash_set6
3 files changed, 13 insertions, 1 deletions
diff --git a/llvm/include/Support/HashExtras.h b/llvm/include/Support/HashExtras.h
index d7e48a3b625..da9e3f5cbad 100644
--- a/llvm/include/Support/HashExtras.h
+++ b/llvm/include/Support/HashExtras.h
@@ -11,7 +11,7 @@
#define LLVM_SUPPORT_HASHEXTRAS_H
#include <string>
-#include <ext/hash_map>
+#include <Support/hash_map>
// Cannot specialize hash template from outside of the std namespace.
namespace std {
diff --git a/llvm/include/Support/hash_map b/llvm/include/Support/hash_map
new file mode 100644
index 00000000000..aefcc289e2e
--- /dev/null
+++ b/llvm/include/Support/hash_map
@@ -0,0 +1,6 @@
+#if __GNUC__ == 3
+#include <ext/hash_map>
+using __gnu_cxx::hash_map;
+#else
+#include <hash_map>
+#endif
diff --git a/llvm/include/Support/hash_set b/llvm/include/Support/hash_set
new file mode 100644
index 00000000000..f95cc363c74
--- /dev/null
+++ b/llvm/include/Support/hash_set
@@ -0,0 +1,6 @@
+#if __GNUC__==3
+#include <ext/hash_set>
+using __gnu_cxx::hash_set;
+#else
+#include <hash_set>
+#endif
OpenPOWER on IntegriCloud