[ThinLTO] Import readonly vars with refs
authorevgeny <eleviant@accesssoftek.com>
Thu, 7 Nov 2019 12:13:35 +0000 (15:13 +0300)
committerevgeny <eleviant@accesssoftek.com>
Thu, 7 Nov 2019 12:13:35 +0000 (15:13 +0300)
commitdde589389fcb8b5098f7a47f1b781b27d29a0cac
treee478a91f76c2558377ec6f1bffb9595924208e55
parent7ff57705ba196ce649d6034614b3b9df57e1f84f
[ThinLTO] Import readonly vars with refs

Patch allows importing declarations of functions and variables, referenced
by the initializer of some other readonly variable.
Differential revision: https://reviews.llvm.org/D69561
12 files changed:
llvm/include/llvm/IR/ModuleSummaryIndex.h
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
llvm/lib/IR/ModuleSummaryIndex.cpp
llvm/lib/Transforms/IPO/FunctionImport.cpp
llvm/lib/Transforms/Utils/FunctionImportUtils.cpp
llvm/test/Bitcode/summary_version.ll
llvm/test/Bitcode/thinlto-deadstrip-flag.ll
llvm/test/Bitcode/thinlto-synthetic-count-flag.ll
llvm/test/ThinLTO/X86/globals-import.ll
llvm/test/ThinLTO/X86/local_name_conflict.ll
llvm/test/tools/gold/X86/v1.12/thinlto_emit_linked_objects.ll