Move hash_* extension headers from ext/ to Support/ so that we can support
authorChris Lattner <sabre@nondot.org>
Wed, 24 Jul 2002 21:16:42 +0000 (21:16 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 24 Jul 2002 21:16:42 +0000 (21:16 +0000)
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

include/Support/HashExtras.h
include/Support/hash_map [new file with mode: 0644]
include/Support/hash_set [new file with mode: 0644]
include/llvm/ADT/HashExtras.h

index d7e48a3b625d900458564bbd7bb064b6449f1ee1..da9e3f5cbadd9267d48e4c554fff290413a31454 100644 (file)
@@ -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/include/Support/hash_map b/include/Support/hash_map
new file mode 100644 (file)
index 0000000..aefcc28
--- /dev/null
@@ -0,0 +1,6 @@
+#if __GNUC__ == 3
+#include <ext/hash_map>
+using __gnu_cxx::hash_map;
+#else
+#include <hash_map>
+#endif
diff --git a/include/Support/hash_set b/include/Support/hash_set
new file mode 100644 (file)
index 0000000..f95cc36
--- /dev/null
@@ -0,0 +1,6 @@
+#if __GNUC__==3
+#include <ext/hash_set>
+using __gnu_cxx::hash_set;
+#else
+#include <hash_set>
+#endif
index d7e48a3b625d900458564bbd7bb064b6449f1ee1..da9e3f5cbadd9267d48e4c554fff290413a31454 100644 (file)
@@ -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 {