diff options
author | Chris Lattner <sabre@nondot.org> | 2012-01-27 03:15:49 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2012-01-27 03:15:49 +0000 |
commit | cc3aaf18366b46dfe6580e1ef652108d4a665b50 (patch) | |
tree | d0c21b14bb05ecd13643c9997ef4e279ad4a045b /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 0256be96f24ec8f6d71239e3f7be97da7de9160e (diff) | |
download | bcm5719-llvm-cc3aaf18366b46dfe6580e1ef652108d4a665b50.tar.gz bcm5719-llvm-cc3aaf18366b46dfe6580e1ef652108d4a665b50.zip |
smallvectorize.
llvm-svn: 149117
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index bddcde8242f..c12a95ecfe9 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -624,7 +624,7 @@ bool BitcodeReader::ParseTypeTableBody() { // FUNCTION: [vararg, attrid, retty, paramty x N] if (Record.size() < 3) return Error("Invalid FUNCTION type record"); - std::vector<Type*> ArgTys; + SmallVector<Type*, 8> ArgTys; for (unsigned i = 3, e = Record.size(); i != e; ++i) { if (Type *T = getTypeByID(Record[i])) ArgTys.push_back(T); @@ -643,7 +643,7 @@ bool BitcodeReader::ParseTypeTableBody() { // FUNCTION: [vararg, retty, paramty x N] if (Record.size() < 2) return Error("Invalid FUNCTION type record"); - std::vector<Type*> ArgTys; + SmallVector<Type*, 8> ArgTys; for (unsigned i = 2, e = Record.size(); i != e; ++i) { if (Type *T = getTypeByID(Record[i])) ArgTys.push_back(T); @@ -661,7 +661,7 @@ bool BitcodeReader::ParseTypeTableBody() { case bitc::TYPE_CODE_STRUCT_ANON: { // STRUCT: [ispacked, eltty x N] if (Record.size() < 1) return Error("Invalid STRUCT type record"); - std::vector<Type*> EltTys; + SmallVector<Type*, 8> EltTys; for (unsigned i = 1, e = Record.size(); i != e; ++i) { if (Type *T = getTypeByID(Record[i])) EltTys.push_back(T); @@ -1070,7 +1070,7 @@ bool BitcodeReader::ParseConstants() { return Error("Invalid CST_AGGREGATE record"); unsigned Size = Record.size(); - std::vector<Constant*> Elts; + SmallVector<Constant*, 16> Elts; if (StructType *STy = dyn_cast<StructType>(CurTy)) { for (unsigned i = 0; i != Size; ++i) @@ -1100,7 +1100,7 @@ bool BitcodeReader::ParseConstants() { Type *EltTy = ATy->getElementType(); unsigned Size = Record.size(); - std::vector<Constant*> Elts; + SmallVector<Constant*, 16> Elts; for (unsigned i = 0; i != Size; ++i) Elts.push_back(ConstantInt::get(EltTy, Record[i])); V = ConstantArray::get(ATy, Elts); @@ -1114,7 +1114,7 @@ bool BitcodeReader::ParseConstants() { Type *EltTy = ATy->getElementType(); unsigned Size = Record.size(); - std::vector<Constant*> Elts; + SmallVector<Constant*, 16> Elts; for (unsigned i = 0; i != Size; ++i) Elts.push_back(ConstantInt::get(EltTy, Record[i])); Elts.push_back(Constant::getNullValue(EltTy)); |