| 1427 | } |
| 1428 | |
| 1429 | Error BitcodeReader::parseAlignmentValue(uint64_t Exponent, |
| 1430 | unsigned &Alignment) { |
| 1431 | // Note: Alignment in bitcode files is incremented by 1, so that zero |
| 1432 | // can be used for default alignment. |
| 1433 | if (Exponent > Value::MaxAlignmentExponent + 1) |
| 1434 | return error("Invalid alignment value"); |
| 1435 | Alignment = (1 << static_cast<unsigned>(Exponent)) >> 1; |
| 1436 | return Error::success(); |
| 1437 | } |
| 1438 | |
| 1439 | Error BitcodeReader::parseAttrKind(uint64_t Code, Attribute::AttrKind *Kind) { |
| 1440 | *Kind = getAttrFromCode(Code); |