summaryrefslogtreecommitdiff
path: root/include/llvm/Bitcode
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-03-03 15:04:13 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-03-03 15:04:13 +0000
commite19ead0f2452cefc1d8e67e8d0d4cc561a1962d5 (patch)
tree2f84ada09478b169f7720b222e27d8cd5a876240 /include/llvm/Bitcode
parente6ec02e8afe1bec8f9de5c907a50a6efdee261a0 (diff)
downloadllvm-e19ead0f2452cefc1d8e67e8d0d4cc561a1962d5.tar.gz
llvm-e19ead0f2452cefc1d8e67e8d0d4cc561a1962d5.tar.bz2
llvm-e19ead0f2452cefc1d8e67e8d0d4cc561a1962d5.tar.xz
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
Diffstat (limited to 'include/llvm/Bitcode')
-rw-r--r--include/llvm/Bitcode/BitCodes.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Bitcode/BitCodes.h b/include/llvm/Bitcode/BitCodes.h
index 172ce6e090..28e1ab1c87 100644
--- a/include/llvm/Bitcode/BitCodes.h
+++ b/include/llvm/Bitcode/BitCodes.h
@@ -155,11 +155,13 @@ public:
};
+template <> struct isPodLike<BitCodeAbbrevOp> { 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<BitCodeAbbrevOp, 8> OperandList;
+ SmallVector<BitCodeAbbrevOp, 32> OperandList;
unsigned char RefCount; // Number of things using this.
~BitCodeAbbrev() {}
public: