MCPcopy Create free account
hub / github.com/GANGE666/xVMP / parseVersionRecord

Method parseVersionRecord

src/lib/Bitcode/Reader/BitcodeReader.cpp:418–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416}
417
418Expected<unsigned>
419BitcodeReaderBase::parseVersionRecord(ArrayRef<uint64_t> Record) {
420 if (Record.empty())
421 return error("Invalid record");
422 unsigned ModuleVersion = Record[0];
423 if (ModuleVersion > 2)
424 return error("Invalid value");
425 UseStrtab = ModuleVersion >= 2;
426 return ModuleVersion;
427}
428
429std::pair<StringRef, ArrayRef<uint64_t>>
430BitcodeReaderBase::readNameFromStrtab(ArrayRef<uint64_t> Record) {

Callers

nothing calls this directly

Calls 2

errorFunction · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected