summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-link/llvm-link.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-link/llvm-link.cpp')
-rw-r--r--llvm/tools/llvm-link/llvm-link.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/tools/llvm-link/llvm-link.cpp b/llvm/tools/llvm-link/llvm-link.cpp
index 2b63649cec2..9a373c25cc5 100644
--- a/llvm/tools/llvm-link/llvm-link.cpp
+++ b/llvm/tools/llvm-link/llvm-link.cpp
@@ -198,7 +198,10 @@ static bool importFunctions(const char *argv0, LLVMContext &Context,
}
// Link in the specified function.
- if (L.linkInModule(*M, Linker::Flags::None, Index.get(), F))
+ DenseSet<const GlobalValue *> FunctionToImport;
+ FunctionToImport.insert(F);
+ if (L.linkInModule(*M, Linker::Flags::None, Index.get(),
+ &FunctionToImport))
return false;
}
return true;
OpenPOWER on IntegriCloud