summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2016-05-05 02:30:48 +0000
committerTeresa Johnson <tejohnson@google.com>2016-05-05 02:30:48 +0000
commit9e95da77f97c59ecb5a8fdbff641ec48eb4ca228 (patch)
tree2f27035fdfde4ce57e088f3716f750e26d20d46a /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentac75a2780919d67b0330e43fb533145f0f52d93e (diff)
downloadbcm5719-llvm-9e95da77f97c59ecb5a8fdbff641ec48eb4ca228.tar.gz
bcm5719-llvm-9e95da77f97c59ecb5a8fdbff641ec48eb4ca228.zip
[ThinLTO] Remove missed piece of lazy summary reading support (NFC)
Missed in r267097. llvm-svn: 268597
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp48
1 files changed, 0 insertions, 48 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index b2b25df5c5d..11ddd013516 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -526,11 +526,6 @@ public:
std::error_code parseSummaryIndexInto(std::unique_ptr<DataStreamer> Streamer,
ModuleSummaryIndex *I);
- /// \brief Interface for parsing a summary lazily.
- std::error_code
- parseGlobalValueSummary(std::unique_ptr<DataStreamer> Streamer,
- ModuleSummaryIndex *I, size_t SummaryOffset);
-
private:
std::error_code parseModule();
std::error_code parseValueSymbolTable(
@@ -6331,49 +6326,6 @@ std::error_code ModuleSummaryIndexBitcodeReader::parseSummaryIndexInto(
}
}
-// Parse the summary information at the given offset in the buffer into
-// the index. Used to support lazy parsing of summaries from the
-// combined index during importing.
-// TODO: This function is not yet complete as it won't have a consumer
-// until ThinLTO function importing is added.
-std::error_code ModuleSummaryIndexBitcodeReader::parseGlobalValueSummary(
- std::unique_ptr<DataStreamer> Streamer, ModuleSummaryIndex *I,
- size_t SummaryOffset) {
- TheIndex = I;
-
- if (std::error_code EC = initStream(std::move(Streamer)))
- return EC;
-
- // Sniff for the signature.
- if (!hasValidBitcodeHeader(Stream))
- return error("Invalid bitcode signature");
-
- Stream.JumpToBit(SummaryOffset);
-
- BitstreamEntry Entry = Stream.advanceSkippingSubblocks();
-
- switch (Entry.Kind) {
- default:
- return error("Malformed block");
- case BitstreamEntry::Record:
- // The expected case.
- break;
- }
-
- // TODO: Read a record. This interface will be completed when ThinLTO
- // importing is added so that it can be tested.
- SmallVector<uint64_t, 64> Record;
- switch (Stream.readRecord(Entry.ID, Record)) {
- case bitc::FS_COMBINED:
- case bitc::FS_COMBINED_PROFILE:
- case bitc::FS_COMBINED_GLOBALVAR_INIT_REFS:
- default:
- return error("Invalid record");
- }
-
- return std::error_code();
-}
-
std::error_code ModuleSummaryIndexBitcodeReader::initStream(
std::unique_ptr<DataStreamer> Streamer) {
if (Streamer)
OpenPOWER on IntegriCloud