1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/tools
António Afonso b3e4704ff5 Fix debug_abbrev emitter to only assign table id once
While generating yamls for my tests I noticed that the new debug_abbrev format (with multiple table support) was incorrectly assigning id's to the table because it was generating one per abbrev entry in the table. For instance, the first table would get id 4 when 5 abbrev entries existed in the table. By itself this is not a problem but the corresponding debug_info sections were still referencing id 0. This was introduced here: https://reviews.llvm.org/D83116.

Maybe a better fix is to actually correctly calculate the table id when emitting debug info? From a quick glance it seems to me the ID is just being calculated as the distance between the first DWARFAbbreviationDeclarationSet and the one the debug info entry points to, which means it's just its index and not the actual table id that was generated when emitting the debug_abbrev tables. With my fix I guess this is fine but on the diff that introduced this Pavel mentioned that he would like to have some sort of unique id between them but not necessarily +1 increasing, but for that to work we need to actually find the table ID, I guess by going directly to Y.DebugAbbrev but to honest I have no idea how to link the DWARFAbbreviationDeclarationSet and the Y.DebugAbbrev, so I just did this simple fix.

I also realized there's barely any tests for MachO so it might useful to invest on that if the tool is being reworked on.

Reviewed By: Higuoxing, jhenderson

Differential Revision: https://reviews.llvm.org/D87179
2020-11-08 18:11:50 -08:00
..
bugpoint
bugpoint-passes
dsymutil Revert "[DWARFLinker] Capitalize type names (NFC)" 2020-10-22 15:09:45 +07:00
gold
llc
lli [ORC] Remove OrcV1 APIs. 2020-10-18 21:02:44 -07:00
llvm-ar
llvm-as
llvm-as-fuzzer
llvm-bcanalyzer
llvm-c-test C API: support scalable vectors 2020-10-28 18:19:34 -04:00
llvm-cat
llvm-cfi-verify
llvm-config
llvm-cov [llvm-cov] Fix missing slash in -path-equivalence 2020-11-06 14:54:11 -08:00
llvm-cvtres
llvm-cxxdump
llvm-cxxfilt
llvm-cxxmap
llvm-diff
llvm-dis
llvm-dwarfdump
llvm-dwp
llvm-elfabi
llvm-exegesis [llvm-exegesis] Fix rGaf658d920e2b 2020-11-04 13:23:34 +01:00
llvm-extract
llvm-go
llvm-gsymutil
llvm-ifs [llvm] Fix ODRViolations for VersionTuple YAML specializations NFC 2020-10-20 18:29:15 -07:00
llvm-isel-fuzzer
llvm-itanium-demangle-fuzzer
llvm-jitlink [ORC] Update Symbol Lookup / DefinitionGenerator system. 2020-10-19 01:59:03 -07:00
llvm-jitlistener
llvm-libtool-darwin Fix shared build. 2020-10-30 00:46:23 -04:00
llvm-link
llvm-lipo
llvm-lto
llvm-lto2
llvm-mc [llvm-mc] Drop unneeded dependency on CodeGen 2020-10-28 10:53:15 -07:00
llvm-mc-assemble-fuzzer
llvm-mc-disassemble-fuzzer
llvm-mca [MC] Make MCStreamer aware of AsmParser's StartTokLoc 2020-11-02 12:32:07 -08:00
llvm-microsoft-demangle-fuzzer
llvm-ml [ms] [llvm-ml] Lex MASM strings, including escaping 2020-11-04 15:28:43 -05:00
llvm-modextract
llvm-mt
llvm-nm
llvm-objcopy [llvm-objcopy][MachO] Minor refactoring of MachOLayoutBuilder 2020-11-07 20:25:49 -08:00
llvm-objdump [objdump][macho] Check arch before formating reloc name as arm64 addend 2020-10-16 14:30:22 -07:00
llvm-opt-fuzzer [NFC] Clean up PassBuilder 2020-10-30 10:03:59 -07:00
llvm-opt-report
llvm-pdbutil [COFF][ARM] Fix CodeView for Windows on 32bit ARM targets. 2020-10-19 22:16:16 -07:00
llvm-profdata
llvm-rc
llvm-readobj [AMDGPU] Add gfx1033 target 2020-11-03 16:27:48 +00:00
llvm-reduce [llvm-reduce] Add reduction for aliases. 2020-10-28 13:11:19 +00:00
llvm-rtdyld
llvm-shlib
llvm-size
llvm-special-case-list-fuzzer
llvm-split
llvm-stress
llvm-strings
llvm-symbolizer Revert several changes related to llvm-symbolizer exiting non-zero on failure. 2020-10-21 15:21:44 -07:00
llvm-undname
llvm-xray
llvm-yaml-numeric-parser-fuzzer
lto
msbuild
obj2yaml Fix debug_abbrev emitter to only assign table id once 2020-11-08 18:11:50 -08:00
opt Reland [NewPM] Add OptimizationLevel param to registerPipelineStartEPCallback 2020-11-04 13:11:40 -08:00
opt-viewer
remarks-shlib
sancov
sanstats
split-file
verify-uselistorder Handle value uses wrapped in metadata for the use-list order 2020-10-20 20:05:59 +02:00
vfabi-demangle-fuzzer
xcode-toolchain
yaml2obj [llvm] Make obj2yaml and yaml2obj LLVM utilities instead of tools 2020-10-19 10:21:21 -07:00
CMakeLists.txt
LLVMBuild.txt