}
static std::unique_ptr<FunctionInfoIndex>
-getFunctionIndexForFile(LLVMContext &Context, claimed_file &F,
- ld_plugin_input_file &Info) {
+getFunctionIndexForFile(claimed_file &F, ld_plugin_input_file &Info) {
if (get_symbols(F.handle, F.syms.size(), &F.syms[0]) != LDPS_OK)
message(LDPL_FATAL, "Failed to get symbol information");
message(LDPL_FATAL, "Failed to get file information");
std::unique_ptr<FunctionInfoIndex> Index =
- getFunctionIndexForFile(Context, F, File);
+ getFunctionIndexForFile(F, File);
CombinedIndex.mergeFrom(std::move(Index), ++NextModuleId);
}