[llvm-commits] [llvm] r60262 - /llvm/trunk/include/llvm/ADT/DenseMap.h

Chris Lattner sabre at nondot.org
Sat Nov 29 16:50:20 PST 2008


Author: lattner
Date: Sat Nov 29 18:50:20 2008
New Revision: 60262

URL: http://llvm.org/viewvc/llvm-project?rev=60262&view=rev
Log:
fix indentation.  std::pair is "isPod" if the first/second are both isPod.

Modified:
    llvm/trunk/include/llvm/ADT/DenseMap.h

Modified: llvm/trunk/include/llvm/ADT/DenseMap.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/DenseMap.h?rev=60262&r1=60261&r2=60262&view=diff

==============================================================================
--- llvm/trunk/include/llvm/ADT/DenseMap.h (original)
+++ llvm/trunk/include/llvm/ADT/DenseMap.h Sat Nov 29 18:50:20 2008
@@ -67,22 +67,23 @@
   }
   static inline Pair getTombstoneKey() { 
     return std::make_pair(FirstInfo::getTombstoneKey(), 
-                            SecondInfo::getEmptyKey()); }
-    static unsigned getHashValue(const Pair& PairVal) {
-      uint64_t key = (uint64_t)FirstInfo::getHashValue(PairVal.first) << 32
-            | (uint64_t)SecondInfo::getHashValue(PairVal.second);
-      key += ~(key << 32);
-      key ^= (key >> 22);
-      key += ~(key << 13);
-      key ^= (key >> 8);
-      key += (key << 3);
-      key ^= (key >> 15);
-      key += ~(key << 27);
-      key ^= (key >> 31);
-      return (unsigned)key;
-    }
-    static bool isEqual(const Pair& LHS, const Pair& RHS) { return LHS == RHS; }
-    static bool isPod() { return false; }
+                            SecondInfo::getEmptyKey());
+  }
+  static unsigned getHashValue(const Pair& PairVal) {
+    uint64_t key = (uint64_t)FirstInfo::getHashValue(PairVal.first) << 32
+          | (uint64_t)SecondInfo::getHashValue(PairVal.second);
+    key += ~(key << 32);
+    key ^= (key >> 22);
+    key += ~(key << 13);
+    key ^= (key >> 8);
+    key += (key << 3);
+    key ^= (key >> 15);
+    key += ~(key << 27);
+    key ^= (key >> 31);
+    return (unsigned)key;
+  }
+  static bool isEqual(const Pair& LHS, const Pair& RHS) { return LHS == RHS; }
+  static bool isPod() { return FirstInfo::isPod() && SecondInfo::isPod(); }
 };
 
 template<typename KeyT, typename ValueT, 





More information about the llvm-commits mailing list