aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Compression.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@fb.com>2020-07-28 18:26:24 -0700
committerGreg Clayton <gclayton@fb.com>2020-08-05 15:30:13 -0700
commite1de85f9f4dae68b2c83d8821515c1f5db765baa (patch)
tree849df7d290f906ed48f049dc1f5c13b37d8b6257 /llvm/lib/Support/Compression.cpp
parent31137b87efc12b1d8cdd8307bcddb986e5c23c61 (diff)
downloadllvm-e1de85f9f4dae68b2c83d8821515c1f5db765baa.zip
llvm-e1de85f9f4dae68b2c83d8821515c1f5db765baa.tar.gz
llvm-e1de85f9f4dae68b2c83d8821515c1f5db765baa.tar.bz2
Add verification for DW_AT_decl_file and DW_AT_call_file.
LTO builds have been creating invalid DWARF and one of the errors was a file index that was out of bounds. "llvm-dwarfdump --verify" will check all file indexes for line tables already, but there are no checks for the validity of file indexes in attributes. The verification will verify if there is a DW_AT_decl_file/DW_AT_call_file that: - there is a line table for the compile unit - the file index is valid - the encoding is appropriate Tests are added that test all of the above conditions. Differential Revision: https://reviews.llvm.org/D84817
Diffstat (limited to 'llvm/lib/Support/Compression.cpp')
0 files changed, 0 insertions, 0 deletions