X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=tools%2Fgold%2Fgold-plugin.cpp;h=77e4b83223c6d597dcea0cba261698e8d6b9131d;hp=116df7903eeb61d4c72a4ee01638097812ec4379;hb=31b8ab0fa67c63ddd067f1cac6d21d61c16afc27;hpb=5d8ee1bd0d8944ad9fcfe522e85394dc056255b6 diff --git a/tools/gold/gold-plugin.cpp b/tools/gold/gold-plugin.cpp index 116df7903ee..77e4b83223c 100644 --- a/tools/gold/gold-plugin.cpp +++ b/tools/gold/gold-plugin.cpp @@ -609,8 +609,7 @@ static void freeSymName(ld_plugin_symbol &Sym) { } static std::unique_ptr -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"); @@ -911,7 +910,7 @@ static ld_plugin_status allSymbolsReadHook(raw_fd_ostream *ApiFile) { message(LDPL_FATAL, "Failed to get file information"); std::unique_ptr Index = - getFunctionIndexForFile(Context, F, File); + getFunctionIndexForFile(F, File); CombinedIndex.mergeFrom(std::move(Index), ++NextModuleId); }