[llvm] r291356 - [Bitcode] Remove unused PlaceHolder parameter to lazyLoadModuleMetadataBlock()
Mehdi Amini via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 7 10:31:38 PST 2017
Author: mehdi_amini
Date: Sat Jan 7 12:31:38 2017
New Revision: 291356
URL: http://llvm.org/viewvc/llvm-project?rev=291356&view=rev
Log:
[Bitcode] Remove unused PlaceHolder parameter to lazyLoadModuleMetadataBlock()
Modified:
llvm/trunk/lib/Bitcode/Reader/MetadataLoader.cpp
Modified: llvm/trunk/lib/Bitcode/Reader/MetadataLoader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Reader/MetadataLoader.cpp?rev=291356&r1=291355&r2=291356&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Reader/MetadataLoader.cpp (original)
+++ llvm/trunk/lib/Bitcode/Reader/MetadataLoader.cpp Sat Jan 7 12:31:38 2017
@@ -429,7 +429,7 @@ class MetadataLoader::MetadataLoaderImpl
/// Populate the index above to enable lazily loading of metadata, and load
/// the named metadata as well as the transitively referenced global
/// Metadata.
- Expected<bool> lazyLoadModuleMetadataBlock(PlaceholderQueue &Placeholders);
+ Expected<bool> lazyLoadModuleMetadataBlock();
/// On-demand loading of a single metadata. Requires the index above to be
/// populated.
@@ -516,8 +516,8 @@ Error error(const Twine &Message) {
Message, make_error_code(BitcodeError::CorruptedBitcode));
}
-Expected<bool> MetadataLoader::MetadataLoaderImpl::lazyLoadModuleMetadataBlock(
- PlaceholderQueue &Placeholders) {
+Expected<bool>
+MetadataLoader::MetadataLoaderImpl::lazyLoadModuleMetadataBlock() {
IndexCursor = Stream;
SmallVector<uint64_t, 64> Record;
// Get the abbrevs, and preload record positions to make them lazy-loadable.
@@ -701,7 +701,7 @@ Error MetadataLoader::MetadataLoaderImpl
// then load individual record as needed, starting with the named metadata.
if (ModuleLevel && IsImporting && MetadataList.empty() &&
!DisableLazyLoading) {
- auto SuccessOrErr = lazyLoadModuleMetadataBlock(Placeholders);
+ auto SuccessOrErr = lazyLoadModuleMetadataBlock();
if (!SuccessOrErr)
return SuccessOrErr.takeError();
if (SuccessOrErr.get()) {
More information about the llvm-commits
mailing list