Restore part of "[ThinLTO] Prevent exporting of locals used/defined in module level...
authorTeresa Johnson <tejohnson@google.com>
Thu, 10 Nov 2016 16:57:32 +0000 (16:57 +0000)
committerTeresa Johnson <tejohnson@google.com>
Thu, 10 Nov 2016 16:57:32 +0000 (16:57 +0000)
commita081145ebdc1d1a424f0389b6022a01023e053de
treeed5a5acd58e1700e8f4de88220313b6967cfea5e
parentaee391b535b7acfebc4d4c9370978a5c5544cbfc
Restore part of "[ThinLTO] Prevent exporting of locals used/defined in module level asm"

This restores the part of r286297 that didn't require adding a
dependency from the Analysis to Object library. There are two parts
to the original fix, and this will address the handling for the case
where locals are used in module level asm.

The part that requires functionality in libObject handles local defs
in module level asm, and was reverted because our downstream build
of clang builds lib/Bitcode into a single library, and this new
dependency introduced a cycle there. I am trying to get that fixed
(see D26502), so for now that change isn't being restored

llvm-svn: 286475
llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
llvm/test/ThinLTO/X86/Inputs/module_asm2.ll [new file with mode: 0644]
llvm/test/ThinLTO/X86/module_asm2.ll [new file with mode: 0644]