]> granicus.if.org Git - llvm/commit
[ThinLTO] Use flags from summary when writing variable summary (NFC)
authorTeresa Johnson <tejohnson@google.com>
Fri, 28 Oct 2016 19:36:00 +0000 (19:36 +0000)
committerTeresa Johnson <tejohnson@google.com>
Fri, 28 Oct 2016 19:36:00 +0000 (19:36 +0000)
commit4c68e05037714aa79f228990adc900a595154de1
treef80c744dbaf9742550256c497cba8b61232a93c6
parentd7cf4df07bf88e1618e5353f80e23b3fcba98b6b
[ThinLTO] Use flags from summary when writing variable summary (NFC)

We already read the flags out of the summary when writing the summary
records for functions and aliases, do the same for variables.

This is an NFC change for now since the flags computed on the fly from
the GlobalValue currently will always match those in the summary
already, but once I send a follow-on patch to set the NoRename flag for
locals in the llvm.used set this becomes a necessary change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285433 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Writer/BitcodeWriter.cpp