diff options
| author | Mehdi Amini <mehdi.amini@apple.com> | 2015-12-03 02:37:30 +0000 |
|---|---|---|
| committer | Mehdi Amini <mehdi.amini@apple.com> | 2015-12-03 02:37:30 +0000 |
| commit | 7471cf81b03f231847771062fea610dd13e2c8e0 (patch) | |
| tree | 845af135a10f4386fa18f2c5f3f2c9b26f363a61 /llvm/lib/Linker/LinkModules.cpp | |
| parent | 9abe1089c7863a02b86bc39e571522de98a97b0a (diff) | |
| download | bcm5719-llvm-7471cf81b03f231847771062fea610dd13e2c8e0.tar.gz bcm5719-llvm-7471cf81b03f231847771062fea610dd13e2c8e0.zip | |
Adapt comment and rename variable in ModuleLinker to describe more accurately the actual use.
Thanks Sean Silva for the suggestion.
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 254582
Diffstat (limited to 'llvm/lib/Linker/LinkModules.cpp')
| -rw-r--r-- | llvm/lib/Linker/LinkModules.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp index 4f740587272..67613967f49 100644 --- a/llvm/lib/Linker/LinkModules.cpp +++ b/llvm/lib/Linker/LinkModules.cpp @@ -424,10 +424,10 @@ public: ModuleLinker(Module &DstM, Linker::IdentifiedStructTypeSet &Set, Module &SrcM, DiagnosticHandlerFunction DiagnosticHandler, unsigned Flags, const FunctionInfoIndex *Index = nullptr, - DenseSet<const GlobalValue *> *FuncToImport = nullptr) + DenseSet<const GlobalValue *> *FunctionsToImport = nullptr) : DstM(DstM), SrcM(SrcM), TypeMap(Set), ValMaterializer(this), DiagnosticHandler(DiagnosticHandler), Flags(Flags), ImportIndex(Index), - ImportFunction(FuncToImport) { + ImportFunction(FunctionsToImport) { assert((ImportIndex || !ImportFunction) && "Expect a FunctionInfoIndex when importing"); // If we have a FunctionInfoIndex but no function to import, @@ -2031,9 +2031,9 @@ Linker::Linker(Module &M) bool Linker::linkInModule(Module &Src, unsigned Flags, const FunctionInfoIndex *Index, - DenseSet<const GlobalValue *> *FuncToImport) { + DenseSet<const GlobalValue *> *FunctionsToImport) { ModuleLinker TheLinker(Composite, IdentifiedStructTypes, Src, - DiagnosticHandler, Flags, Index, FuncToImport); + DiagnosticHandler, Flags, Index, FunctionsToImport); bool RetCode = TheLinker.run(); Composite.dropTriviallyDeadConstantArrays(); return RetCode; |

