Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Unified Diff: src/IceGlobalContext.cpp

Issue 773583004: Subzero: Fix the g++ build (e.g. Windows). (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceELFSection.cpp ('k') | src/IceInst.h » ('j') | src/IceOperand.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceGlobalContext.cpp
diff --git a/src/IceGlobalContext.cpp b/src/IceGlobalContext.cpp
index 095f288ae88b8fb30982d477a733f9957b536c46..2f5269bc64d7592a848046a92497f86aba26d30c 100644
--- a/src/IceGlobalContext.cpp
+++ b/src/IceGlobalContext.cpp
@@ -26,12 +26,14 @@
#include "IceTimerTree.h"
#include "IceTypes.h"
-template <> struct std::hash<Ice::RelocatableTuple> {
- std::size_t operator()(const Ice::RelocatableTuple &Key) const {
- return std::hash<Ice::IceString>()(Key.Name) +
- std::hash<Ice::RelocOffsetT>()(Key.Offset);
+namespace std {
+template <> struct hash<Ice::RelocatableTuple> {
+ size_t operator()(const Ice::RelocatableTuple &Key) const {
+ return hash<Ice::IceString>()(Key.Name) +
+ hash<Ice::RelocOffsetT>()(Key.Offset);
}
};
+} // end of namespace std
namespace Ice {
« no previous file with comments | « src/IceELFSection.cpp ('k') | src/IceInst.h » ('j') | src/IceOperand.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698