From: Mehdi Amini Date: Thu, 3 Dec 2015 02:58:14 +0000 (+0000) Subject: clang-format FunctionImport after refactoring (NFC) X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=e3c21d3c167d31a4f94a64dff77624fdf1e4b984 clang-format FunctionImport after refactoring (NFC) From: Mehdi Amini git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254585 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/IPO/FunctionImport.cpp b/lib/Transforms/IPO/FunctionImport.cpp index 0187528153b..c2359a8a172 100644 --- a/lib/Transforms/IPO/FunctionImport.cpp +++ b/lib/Transforms/IPO/FunctionImport.cpp @@ -80,13 +80,13 @@ static void findExternalCalls(const Function &F, StringSet<> &CalledFunctions, } } - // Helper function: given a worklist and an index, will process all the worklist // and import them based on the summary information -static unsigned ProcessImportWorklist(Module &DestModule, SmallVector &Worklist, - StringSet<> &CalledFunctions, - Linker &TheLinker, const FunctionInfoIndex &Index, - std::function &LazyModuleLoader) { +static unsigned ProcessImportWorklist( + Module &DestModule, SmallVector &Worklist, + StringSet<> &CalledFunctions, Linker &TheLinker, + const FunctionInfoIndex &Index, + std::function &LazyModuleLoader) { unsigned ImportCount = 0; while (!Worklist.empty()) { auto CalledFunctionName = Worklist.pop_back_val(); @@ -170,7 +170,7 @@ static unsigned ProcessImportWorklist(Module &DestModule, SmallVector FunctionsToImport; FunctionsToImport.insert(F); if (TheLinker.linkInModule(Module, Linker::Flags::None, &Index, - &FunctionsToImport)) + &FunctionsToImport)) report_fatal_error("Function Import: link error"); // Process the newly imported function and add callees to the worklist. @@ -190,8 +190,8 @@ static unsigned ProcessImportWorklist(Module &DestModule, SmallVector