diff options
author | Jim Laskey <jlaskey@mac.com> | 2006-10-27 19:14:16 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2006-10-27 19:14:16 +0000 |
commit | a88e609c0ff9b411c01296115c52deb5bd79fc59 (patch) | |
tree | 4221c60508c2f6af9c4a85fd85f16e5ff0987a63 /llvm/lib/Support/FoldingSet.cpp | |
parent | 115511f2e20a7e2a92b9625f750d086dd8ebe0e8 (diff) | |
download | bcm5719-llvm-a88e609c0ff9b411c01296115c52deb5bd79fc59.tar.gz bcm5719-llvm-a88e609c0ff9b411c01296115c52deb5bd79fc59.zip |
Temp patch for missing functionality.
llvm-svn: 31222
Diffstat (limited to 'llvm/lib/Support/FoldingSet.cpp')
-rw-r--r-- | llvm/lib/Support/FoldingSet.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Support/FoldingSet.cpp b/llvm/lib/Support/FoldingSet.cpp index 14b524bceb8..7d0dca2cb13 100644 --- a/llvm/lib/Support/FoldingSet.cpp +++ b/llvm/lib/Support/FoldingSet.cpp @@ -56,10 +56,14 @@ void FoldingSetImpl::NodeID::AddString(const std::string &String) { 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) | |