summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorXing GUO <higuoxing@gmail.com>2020-07-23 23:00:19 +0800
committerXing GUO <higuoxing@gmail.com>2020-07-23 23:00:19 +0800
commit92874d286695d2233a3fc526b07896c3676ec1d3 (patch)
tree4ef97451e57699ae33a4c8ce26594e87e803ebd5 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parenta997e6edb9619dcc02696ee45131e892626f0e60 (diff)
[DWARFYAML] Refactor emitDebugInfo() to make the length be inferred.
This patch refactors `emitDebugInfo()` to make the length field be inferred from its content. Besides, the `Visitor` class is removed in this patch. The original `Visitor` class helps us determine an appropriate length and emit the .debug_info section. These two processes can be merged into one process. Besides, the length field should be inferred when it's missing rather than when it's zero. Reviewed By: jhenderson, labath Differential Revision: https://reviews.llvm.org/D84008
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions