diff options
author | evgeny <eleviant@accesssoftek.com> | 2020-02-18 17:49:54 +0300 |
---|---|---|
committer | evgeny <eleviant@accesssoftek.com> | 2020-02-18 17:49:54 +0300 |
commit | c85055b20392ab0e5d2ac2a9112224106e04f6a2 (patch) | |
tree | 50d390010fae4c366b03f38064fc27d955c95e42 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | 37c452a2895071dac1782668bfcd884951ec2aa5 (diff) | |
download | llvm-c85055b20392ab0e5d2ac2a9112224106e04f6a2.zip llvm-c85055b20392ab0e5d2ac2a9112224106e04f6a2.tar.gz llvm-c85055b20392ab0e5d2ac2a9112224106e04f6a2.tar.bz2 |
[Assembler] Emit summary index flags
Differential revision: https://reviews.llvm.org/D74420
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 8e9c233..b6cfd46c 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -3898,20 +3898,7 @@ void IndexBitcodeWriter::writeCombinedGlobalValueSummary() { ArrayRef<uint64_t>{ModuleSummaryIndex::BitcodeSummaryVersion}); // Write the index flags. - uint64_t Flags = 0; - if (Index.withGlobalValueDeadStripping()) - Flags |= 0x1; - if (Index.skipModuleByDistributedBackend()) - Flags |= 0x2; - if (Index.hasSyntheticEntryCounts()) - Flags |= 0x4; - if (Index.enableSplitLTOUnit()) - Flags |= 0x8; - if (Index.partiallySplitLTOUnits()) - Flags |= 0x10; - if (Index.withAttributePropagation()) - Flags |= 0x20; - Stream.EmitRecord(bitc::FS_FLAGS, ArrayRef<uint64_t>{Flags}); + Stream.EmitRecord(bitc::FS_FLAGS, ArrayRef<uint64_t>{Index.getFlags()}); for (const auto &GVI : valueIds()) { Stream.EmitRecord(bitc::FS_VALUE_GUID, |