diff options
| author | minglotus-6 <mingmingl@google.com> | 2022-01-13 12:44:15 -0800 |
|---|---|---|
| committer | minglotus-6 <mingmingl@google.com> | 2022-01-19 18:07:50 -0800 |
| commit | e95ad93e6ef874ad208028c18b4cb4890320f25c (patch) | |
| tree | d1da46b63389b1569c61054f39deab096507707f /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 30c17e70a4d75efa2febe61fd9f68e303c3173ea (diff) | |
[llvm-dis] Add an option `dump-thinlto-index-only` in llvm-dis to read ThinLTO minimized code only.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
| -rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index 9e414aa74dc7..1e60bad61697 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -3835,6 +3835,11 @@ Error BitcodeReader::parseModule(uint64_t ResumeBit, if (Error Err = parseComdatRecord(Record)) return Err; break; + // FIXME: BitcodeReader should handle {GLOBALVAR, FUNCTION, ALIAS, IFUNC} + // written by ThinLinkBitcodeWriter. See + // `ThinLinkBitcodeWriter::writeSimplifiedModuleInfo` for the format of each + // record + // (https://github.com/llvm/llvm-project/blob/b6a93967d9c11e79802b5e75cec1584d6c8aa472/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp#L4714) case bitc::MODULE_CODE_GLOBALVAR: if (Error Err = parseGlobalVarRecord(Record)) return Err; |
