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

Function jumpToValueSymbolTable

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

Helper to note and return the current location, and jump to the given offset.

Source from the content-addressed store, hash-verified

1878/// Helper to note and return the current location, and jump to the given
1879/// offset.
1880static uint64_t jumpToValueSymbolTable(uint64_t Offset,
1881 BitstreamCursor &Stream) {
1882 // Save the current parsing location so we can jump back at the end
1883 // of the VST read.
1884 uint64_t CurrentBit = Stream.GetCurrentBitNo();
1885 Stream.JumpToBit(Offset * 32);
1886#ifndef NDEBUG
1887 // Do some checking if we are in debug mode.
1888 BitstreamEntry Entry = Stream.advance();
1889 assert(Entry.Kind == BitstreamEntry::SubBlock);
1890 assert(Entry.ID == bitc::VALUE_SYMTAB_BLOCK_ID);
1891#else
1892 // In NDEBUG mode ignore the output so we don't get an unused variable
1893 // warning.
1894 Stream.advance();
1895#endif
1896 return CurrentBit;
1897}
1898
1899void BitcodeReader::setDeferredFunctionInfo(unsigned FuncBitcodeOffsetDelta,
1900 Function *F,

Callers 1

parseValueSymbolTableMethod · 0.85

Calls 4

JumpToBitMethod · 0.80
assertFunction · 0.50
GetCurrentBitNoMethod · 0.45
advanceMethod · 0.45

Tested by

no test coverage detected