summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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