mirror of
https://github.com/obfuscator-llvm/obfuscator
synced 2026-06-08 16:28:34 +00:00
Initial commit of LLVM 3.4
This commit is contained in:
@@ -204,7 +204,16 @@ unsigned BitstreamCursor::readRecord(unsigned AbbrevID,
|
||||
|
||||
const BitCodeAbbrev *Abbv = getAbbrev(AbbrevID);
|
||||
|
||||
for (unsigned i = 0, e = Abbv->getNumOperandInfos(); i != e; ++i) {
|
||||
// Read the record code first.
|
||||
assert(Abbv->getNumOperandInfos() != 0 && "no record code in abbreviation?");
|
||||
const BitCodeAbbrevOp &CodeOp = Abbv->getOperandInfo(0);
|
||||
if (CodeOp.isLiteral())
|
||||
readAbbreviatedLiteral(CodeOp, Vals);
|
||||
else
|
||||
readAbbreviatedField(CodeOp, Vals);
|
||||
unsigned Code = (unsigned)Vals.pop_back_val();
|
||||
|
||||
for (unsigned i = 1, e = Abbv->getNumOperandInfos(); i != e; ++i) {
|
||||
const BitCodeAbbrevOp &Op = Abbv->getOperandInfo(i);
|
||||
if (Op.isLiteral()) {
|
||||
readAbbreviatedLiteral(Op, Vals);
|
||||
@@ -264,8 +273,6 @@ unsigned BitstreamCursor::readRecord(unsigned AbbrevID,
|
||||
JumpToBit(NewEnd);
|
||||
}
|
||||
|
||||
unsigned Code = (unsigned)Vals[0];
|
||||
Vals.erase(Vals.begin());
|
||||
return Code;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user