diff options
author | Xing GUO <higuoxing@gmail.com> | 2020-06-22 21:33:00 +0800 |
---|---|---|
committer | Xing GUO <higuoxing@gmail.com> | 2020-06-22 21:34:02 +0800 |
commit | 3a48a632d00ef1c98042140f402337fe13cdff52 (patch) | |
tree | 9ce9476369e4646f375392992c599437d5e1417c /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 48d1a2d6d06e41b6dc8ff7bdf4a1277120367dc7 (diff) | |
download | llvm-3a48a632d00ef1c98042140f402337fe13cdff52.zip llvm-3a48a632d00ef1c98042140f402337fe13cdff52.tar.gz llvm-3a48a632d00ef1c98042140f402337fe13cdff52.tar.bz2 |
[DWARFYAML][debug_info] Use 'AbbrCode' to index the abbreviation.
Before this patch, we use `(uint32_t)AbbrCode - (uint32_t)FirstAbbrCode` to index the abbreviation. It's impossible for we to use the preceeding abbreviation of the previous one (e.g., if the previous DIE's `AbbrCode` is 2, we are unable to use the abbreviation with index 1). In this patch, we use `AbbrCode` to index the abbreviation directly.
Reviewed By: jhenderson
Differential Revision: https://reviews.llvm.org/D82173
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions