mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
d203f88115
ModuleSummaryIndex::exportToDot crashes when linking the Linux kernel under ThinLTO using LLVMgold.so. This is due to the exportToDot function trying to get the GUID of an empty ValueInfo. The root cause related to the fact that we attempt to get the GUID of an aliasee via its OriginalGUID recorded in the aliasee summary, and that is not always possible. Specifically, we cannot do this mapping when the value is internal linkage and there were other internal linkage symbols with the same name. There are 2 fixes for the problem included here. 1) In all cases where we can currently print the dot file from the command line (which is only via save-temps), we have a valid AliaseeGUID in the AliasSummary. Use that when it is available, so that we can get the correct aliasee GUID whenever possible. 2) However, if we were to invoke exportToDot from the debugger right after it is built during the initial analysis step (i.e. the per-module summary), we won't have the AliaseeGUID field populated. In that case, we have a fallback fix that will simply print "@"+GUID when we aren't able to get the GUID from the OriginalGUID. It simply checks if the VI is valid or not before attempting to get the name. Additionally, since getAliaseeGUID will assert that the AliaseeGUID is non-zero, guard the earlier fix #1 by a new function hasAliaseeGUID(). Reviewers: pcc, tmroeder Subscribers: evgeny777, mehdi_amini, inglorion, dexonsmith, arphaman, llvm-commits Differential Revision: https://reviews.llvm.org/D53986 llvm-svn: 346055 |
||
---|---|---|
.. | ||
alias_import.ll | ||
alias_internal.ll | ||
alias_resolution.ll | ||
autoupgrade.bc | ||
cache-icall.ll | ||
cache-import-lists1.ll | ||
cache-import-lists2.ll | ||
cache-typeid-resolutions1.ll | ||
cache-typeid-resolutions2.ll | ||
cache-typeid-resolutions3.ll | ||
cache-typeid-resolutions-import.ll | ||
cache.ll | ||
callees-metadata.ll | ||
cfi-distributed.ll | ||
crash_debuginfo.ll | ||
deadstrip.ll | ||
debuginfo-compositetype-import.ll | ||
debuginfo-cu-import.ll | ||
diagnostic-handler-remarks.ll | ||
dicompositetype-unique2.ll | ||
dicompositetype-unique-alias.ll | ||
dicompositetype-unique.ll | ||
distributed_import.ll | ||
distributed_indexes.ll | ||
dot-dumper.ll | ||
drop-debug-info.bc | ||
drop-debug-info.ll | ||
dsolocal_dllimport.ll | ||
emit_imports2.ll | ||
emit_imports.ll | ||
empty_module_with_cache.ll | ||
empty.ll | ||
export.ll | ||
funcimport2.ll | ||
funcimport-debug.ll | ||
funcimport-tbaa.ll | ||
funcimport.ll | ||
globals-import-blockaddr.ll | ||
globals-import-cf-baz.ll | ||
globals-import.ll | ||
import_opaque_type.ll | ||
lazyload_metadata.ll | ||
linkonce_aliasee_ref_import.ll | ||
linkonce_resolution_comdat.ll | ||
llvm.used.ll | ||
local_name_conflict1.ll | ||
local_name_conflict2.ll | ||
merge-triple.ll | ||
module_asm2.ll | ||
module_asm.ll | ||
noinline.ll | ||
personality-local.ll | ||
personality.ll | ||
reference_non_importable.ll | ||
referenced_by_constant.ll | ||
section.ll | ||
select_right_alias_definition1.ll | ||
select_right_alias_definition2.ll | ||
weak_resolution.ll |