mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 02:29:18 +00:00
Factor out call to push_back. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221490 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
de3d50643c
commit
8e617cceb1
@ -62,20 +62,22 @@ void BitstreamCursor::readAbbreviatedField(const BitCodeAbbrevOp &Op,
|
||||
assert(!Op.isLiteral() && "Use ReadAbbreviatedLiteral for literals!");
|
||||
|
||||
// Decode the value as we are commanded.
|
||||
uint64_t Val;
|
||||
switch (Op.getEncoding()) {
|
||||
case BitCodeAbbrevOp::Array:
|
||||
case BitCodeAbbrevOp::Blob:
|
||||
llvm_unreachable("Should not reach here");
|
||||
case BitCodeAbbrevOp::Fixed:
|
||||
Vals.push_back(Read((unsigned)Op.getEncodingData()));
|
||||
Val = Read((unsigned)Op.getEncodingData());
|
||||
break;
|
||||
case BitCodeAbbrevOp::VBR:
|
||||
Vals.push_back(ReadVBR64((unsigned)Op.getEncodingData()));
|
||||
Val = ReadVBR64((unsigned)Op.getEncodingData());
|
||||
break;
|
||||
case BitCodeAbbrevOp::Char6:
|
||||
Vals.push_back(BitCodeAbbrevOp::DecodeChar6(Read(6)));
|
||||
Val = BitCodeAbbrevOp::DecodeChar6(Read(6));
|
||||
break;
|
||||
}
|
||||
Vals.push_back(Val);
|
||||
}
|
||||
|
||||
void BitstreamCursor::skipAbbreviatedField(const BitCodeAbbrevOp &Op) {
|
||||
|
Loading…
Reference in New Issue
Block a user