Parse the specified bitcode buffer and merge the index into CombinedIndex. We don't use ModuleIdentifier here because the client may need to control the module path used in the combined summary (e.g. when reading summaries for regular LTO modules).
| 5905 | // module path used in the combined summary (e.g. when reading summaries for |
| 5906 | // regular LTO modules). |
| 5907 | Error BitcodeModule::readSummary(ModuleSummaryIndex &CombinedIndex, |
| 5908 | StringRef ModulePath, uint64_t ModuleId) { |
| 5909 | BitstreamCursor Stream(Buffer); |
| 5910 | Stream.JumpToBit(ModuleBit); |
| 5911 | |
| 5912 | ModuleSummaryIndexBitcodeReader R(std::move(Stream), Strtab, CombinedIndex, |
| 5913 | ModulePath, ModuleId); |
| 5914 | return R.parseModule(); |
| 5915 | } |
| 5916 | |
| 5917 | // Parse the specified bitcode buffer, returning the function info index. |
| 5918 | Expected<std::unique_ptr<ModuleSummaryIndex>> BitcodeModule::getSummary() { |
no test coverage detected