Helper to note and return the current location, and jump to the given offset.
| 1878 | /// Helper to note and return the current location, and jump to the given |
| 1879 | /// offset. |
| 1880 | static 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 | |
| 1899 | void BitcodeReader::setDeferredFunctionInfo(unsigned FuncBitcodeOffsetDelta, |
| 1900 | Function *F, |
no test coverage detected