From: Benjamin Kramer Date: Sat, 3 Mar 2012 15:04:13 +0000 (+0000) Subject: Enable the small vector POD optimization for BitCodeAbbrevOp. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e19ead0f2452cefc1d8e67e8d0d4cc561a1962d5;p=oota-llvm.git Enable the small vector POD optimization for BitCodeAbbrevOp. While at it bump the small vector size a bit, it's inside a heap-allocated class. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151980 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Bitcode/BitCodes.h b/include/llvm/Bitcode/BitCodes.h index 172ce6e0909..28e1ab1c871 100644 --- a/include/llvm/Bitcode/BitCodes.h +++ b/include/llvm/Bitcode/BitCodes.h @@ -155,11 +155,13 @@ public: }; +template <> struct isPodLike { static const bool value=true; }; + /// BitCodeAbbrev - This class represents an abbreviation record. An /// abbreviation allows a complex record that has redundancy to be stored in a /// specialized format instead of the fully-general, fully-vbr, format. class BitCodeAbbrev { - SmallVector OperandList; + SmallVector OperandList; unsigned char RefCount; // Number of things using this. ~BitCodeAbbrev() {} public: