forked from OSchip/llvm-project
Adjust to new Module.h interface for dependent libraries.
llvm-svn: 15218
This commit is contained in:
parent
62c6da9a64
commit
b95885b210
|
@ -923,8 +923,8 @@ void BytecodeWriter::outputModuleInfoBlock(const Module *M) {
|
||||||
output_typeid((unsigned)Table.getSlot(Type::VoidTy));
|
output_typeid((unsigned)Table.getSlot(Type::VoidTy));
|
||||||
|
|
||||||
// Put out the list of dependent libraries for the Module
|
// Put out the list of dependent libraries for the Module
|
||||||
Module::const_literator LI = M->lbegin();
|
Module::lib_iterator LI = M->lib_begin();
|
||||||
Module::const_literator LE = M->lend();
|
Module::lib_iterator LE = M->lib_end();
|
||||||
output_vbr( unsigned(LE - LI) ); // Put out the number of dependent libraries
|
output_vbr( unsigned(LE - LI) ); // Put out the number of dependent libraries
|
||||||
for ( ; LI != LE; ++LI ) {
|
for ( ; LI != LE; ++LI ) {
|
||||||
output(*LI, /*aligned=*/false);
|
output(*LI, /*aligned=*/false);
|
||||||
|
|
Loading…
Reference in New Issue