aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2018-06-06 22:22:01 +0000
committerTeresa Johnson <tejohnson@google.com>2018-06-06 22:22:01 +0000
commit4ffc3e7834fa516247d32fe6478a28bb1d303f3a (patch)
tree4f49ebc6609a102f9585064eba8e088c33067024 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent3cf6db2d561359936af097dc46b946a637f455d6 (diff)
downloadllvm-4ffc3e7834fa516247d32fe6478a28bb1d303f3a.zip
llvm-4ffc3e7834fa516247d32fe6478a28bb1d303f3a.tar.gz
llvm-4ffc3e7834fa516247d32fe6478a28bb1d303f3a.tar.bz2
[ThinLTO] Rename index IsAnalysis flag to HaveGVs (NFC)
With the upcoming patch to add summary parsing support, IsAnalysis would be true in contexts where we are not performing module summary analysis. Rename to the more specific and approprate HaveGVs, which is essentially what this flag is indicating. llvm-svn: 334140
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index 5f044f4..a0347a1 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -5779,8 +5779,7 @@ Expected<std::unique_ptr<ModuleSummaryIndex>> BitcodeModule::getSummary() {
BitstreamCursor Stream(Buffer);
Stream.JumpToBit(ModuleBit);
- auto Index =
- llvm::make_unique<ModuleSummaryIndex>(/*IsPerformingAnalysis=*/false);
+ auto Index = llvm::make_unique<ModuleSummaryIndex>(/*HaveGVs=*/false);
ModuleSummaryIndexBitcodeReader R(std::move(Stream), Strtab, *Index,
ModuleIdentifier, 0);