[llvm-commits] CVS: llvm/lib/Support/FoldingSet.cpp

Jim Laskey jlaskey at apple.com
Fri Oct 27 12:14:32 PDT 2006



Changes in directory llvm/lib/Support:

FoldingSet.cpp updated: 1.3 -> 1.4
---
Log message:

Temp patch for missing functionality.

---
Diffs of the changes:  (+4 -0)

 FoldingSet.cpp |    4 ++++
 1 files changed, 4 insertions(+)


Index: llvm/lib/Support/FoldingSet.cpp
diff -u llvm/lib/Support/FoldingSet.cpp:1.3 llvm/lib/Support/FoldingSet.cpp:1.4
--- llvm/lib/Support/FoldingSet.cpp:1.3	Fri Oct 27 13:47:29 2006
+++ llvm/lib/Support/FoldingSet.cpp	Fri Oct 27 14:14:16 2006
@@ -56,10 +56,14 @@
   const unsigned *Base = (const unsigned *)String.data();
   
   // If the string is aligned do a bulk transfer.
+#if 0  // FIXME - Add insert to SmallVector (tested with vector)
   if (!((intptr_t)Base & 3)) {
     Bits.insert(Bits.end(), Base, Base + Units);
     Pos = Units * sizeof(unsigned);
   } else {
+#else
+  }
+#endif
     // Otherwise do it the hard way.
     for ( Pos += 4; Pos < Size; Pos += 4) {
       unsigned V = ((unsigned char)String[Pos - 4] << 24) |






More information about the llvm-commits mailing list