The return value of createInternalFiles is unused, so remove it.

llvm-svn: 198266
This commit is contained in:
Joey Gouly 2013-12-31 19:15:42 +00:00
parent e98c8cb9f0
commit 0518453e2e
6 changed files with 6 additions and 9 deletions

View File

@ -236,7 +236,7 @@ public:
/// during link. Flavors can override this function in their LinkingContext
/// to add more internal files. These internal files are positioned before
/// the actual input files.
virtual bool createInternalFiles(std::vector<std::unique_ptr<File> > &) const;
virtual void createInternalFiles(std::vector<std::unique_ptr<File> > &) const;
/// Return the list of undefined symbols that are specified in the
/// linker command line, using the -u option.

View File

@ -71,7 +71,7 @@ LinkingContext::createUndefinedSymbolFile(StringRef filename) const {
return std::move(undefinedSymFile);
}
bool LinkingContext::createInternalFiles(
void LinkingContext::createInternalFiles(
std::vector<std::unique_ptr<File> > &result) const {
std::unique_ptr<File> internalFile;
internalFile = createEntrySymbolFile();
@ -80,7 +80,6 @@ bool LinkingContext::createInternalFiles(
internalFile = createUndefinedSymbolFile();
if (internalFile)
result.push_back(std::move(internalFile));
return true;
}
void LinkingContext::setResolverState(uint32_t state) {

View File

@ -90,7 +90,7 @@ private:
};
}
bool elf::HexagonLinkingContext::createInternalFiles(
void elf::HexagonLinkingContext::createInternalFiles(
std::vector<std::unique_ptr<File> > &result) const {
ELFLinkingContext::createInternalFiles(result);
std::unique_ptr<HexagonInitFiniFile> initFiniFile(
@ -100,5 +100,4 @@ bool elf::HexagonLinkingContext::createInternalFiles(
for (auto ai:finiFunctions())
initFiniFile->addFiniFunction(ai);
result.push_back(std::move(initFiniFile));
return true;
}

View File

@ -66,7 +66,7 @@ public:
}
/// \brief Create Internal files for Init/Fini
bool createInternalFiles(std::vector<std::unique_ptr<File> > &result) const;
void createInternalFiles(std::vector<std::unique_ptr<File> > &result) const;
};
} // elf

View File

@ -101,7 +101,7 @@ void elf::X86_64LinkingContext::addPasses(PassManager &pm) {
ELFLinkingContext::addPasses(pm);
}
bool elf::X86_64LinkingContext::createInternalFiles(
void elf::X86_64LinkingContext::createInternalFiles(
std::vector<std::unique_ptr<File> > &result) const {
ELFLinkingContext::createInternalFiles(result);
std::unique_ptr<X86_64InitFiniFile> initFiniFile(
@ -111,6 +111,5 @@ bool elf::X86_64LinkingContext::createInternalFiles(
for (auto ai:finiFunctions())
initFiniFile->addFiniFunction(ai);
result.push_back(std::move(initFiniFile));
return true;
}

View File

@ -86,7 +86,7 @@ public:
}
/// \brief Create Internal files for Init/Fini
bool createInternalFiles(std::vector<std::unique_ptr<File> > &) const;
void createInternalFiles(std::vector<std::unique_ptr<File> > &) const;
};
} // end namespace elf