aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitstreamReader.cpp
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2016-03-27 15:01:11 +0000
committerTeresa Johnson <tejohnson@google.com>2016-03-27 15:01:11 +0000
commit9aae395fa809aa07dcceafc2552cca45205c43bd (patch)
tree281c846f5810dedb6767b2e2fa132d9a94e3e8a0 /llvm/lib/Bitcode/Reader/BitstreamReader.cpp
parent01bb2406a328f26bb1b7d1080052767f7e57a82e (diff)
downloadllvm-9aae395fa809aa07dcceafc2552cca45205c43bd.zip
llvm-9aae395fa809aa07dcceafc2552cca45205c43bd.tar.gz
llvm-9aae395fa809aa07dcceafc2552cca45205c43bd.tar.bz2
[ThinLTO] Don't try to import alias unless aliasee can be imported
With r264503, aliases are now being added to the GlobalsToImport set even when their aliasees can't be imported due to their linkage type. While the importing worked correctly (the aliases imported as declarations) due to the logic in doImportAsDefinition, there is no point to adding them to the GlobalsToImport set. Additionally, with D18487 it was resulting in incorrectly printing a message indicating that the alias was imported. To avoid this, delay adding aliases to the GlobalsToImport set until after the linkage type of the aliasee is checked. This patch is part of D18487. llvm-svn: 264536
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitstreamReader.cpp')
0 files changed, 0 insertions, 0 deletions