I != E; ++I) {
if (I->second) {
// Link in the library suggested.
- bool is_file = true;
- if (LinkInLibrary(I->first,is_file))
+ bool is_bytecode = true;
+ if (LinkInLibrary(I->first,is_bytecode))
return true;
- if (!is_file)
+ if (!is_bytecode)
NativeItems.push_back(*I);
} else {
// Link in the file suggested
/// LinkInLibrary - links one library into the HeadModule.
///
-bool Linker::LinkInLibrary(const std::string& Lib, bool& is_file) {
- is_file = false;
+bool Linker::LinkInLibrary(const std::string& Lib, bool& is_bytecode) {
+ is_bytecode = false;
// Determine where this library lives.
sys::Path Pathname = FindLib(Lib);
if (Pathname.isEmpty())
// LLVM ".so" file.
if (LinkInFile(Pathname))
return error("Cannot link file '" + Pathname.toString() + "'");
- is_file = true;
+ is_bytecode = true;
break;
case sys::ArchiveFileType:
if (LinkInArchive(Pathname))
return error("Cannot link archive '" + Pathname.toString() + "'");
+ is_bytecode = true;
break;
default:
return warning("Supposed library '" + Lib + "' isn't a library.");