summaryrefslogtreecommitdiffstats
path: root/llvm/include/Support/HashExtras.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-24 22:20:00 +0000
committerChris Lattner <sabre@nondot.org>2002-07-24 22:20:00 +0000
commit1e9a5805a43118a04e2d7c94a5262fd4716cec56 (patch)
tree9d8685b700d9f8a64bd4c92124708ff436610413 /llvm/include/Support/HashExtras.h
parenta82ee2df46123497dfeb1e9b9c5ee1bdc49a4cd0 (diff)
downloadbcm5719-llvm-1e9a5805a43118a04e2d7c94a5262fd4716cec56.tar.gz
bcm5719-llvm-1e9a5805a43118a04e2d7c94a5262fd4716cec56.zip
GCC 3.1 fixes
llvm-svn: 3066
Diffstat (limited to 'llvm/include/Support/HashExtras.h')
-rw-r--r--llvm/include/Support/HashExtras.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/Support/HashExtras.h b/llvm/include/Support/HashExtras.h
index da9e3f5cbad..5887a831162 100644
--- a/llvm/include/Support/HashExtras.h
+++ b/llvm/include/Support/HashExtras.h
@@ -14,10 +14,10 @@
#include <Support/hash_map>
// Cannot specialize hash template from outside of the std namespace.
-namespace std {
+namespace HASH_NAMESPACE {
-template <> struct hash<string> {
- size_t operator()(string const &str) const {
+template <> struct hash<std::string> {
+ size_t operator()(std::string const &str) const {
return hash<char const *>()(str.c_str());
}
};
OpenPOWER on IntegriCloud