diff options
author | evgeny <eleviant@accesssoftek.com> | 2019-11-07 15:13:35 +0300 |
---|---|---|
committer | evgeny <eleviant@accesssoftek.com> | 2019-11-07 15:13:35 +0300 |
commit | dde589389fcb8b5098f7a47f1b781b27d29a0cac (patch) | |
tree | e478a91f76c2558377ec6f1bffb9595924208e55 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 7ff57705ba196ce649d6034614b3b9df57e1f84f (diff) | |
download | llvm-dde589389fcb8b5098f7a47f1b781b27d29a0cac.zip llvm-dde589389fcb8b5098f7a47f1b781b27d29a0cac.tar.gz llvm-dde589389fcb8b5098f7a47f1b781b27d29a0cac.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 86d20e9..97f5bc9 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -3723,7 +3723,7 @@ void ModuleBitcodeWriterBase::writeModuleLevelReferences( // Current version for the summary. // This is bumped whenever we introduce changes in the way some record are // interpreted, like flags for instance. -static const uint64_t INDEX_VERSION = 7; +static const uint64_t INDEX_VERSION = 8; /// Emit the per-module summary section alongside the rest of /// the module's bitcode. @@ -3899,6 +3899,8 @@ void IndexBitcodeWriter::writeCombinedGlobalValueSummary() { Flags |= 0x8; if (Index.partiallySplitLTOUnits()) Flags |= 0x10; + if (Index.withAttributePropagation()) + Flags |= 0x20; Stream.EmitRecord(bitc::FS_FLAGS, ArrayRef<uint64_t>{Flags}); for (const auto &GVI : valueIds()) { |