[PATCH] D92918: [llvm-link][NFC] Minor cleanup
Sergey Dmitriev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 9 23:18:47 PST 2020
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG025d4faadb68: [llvm-link][NFC] Minor cleanup (authored by sdmitriev).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92918/new/
https://reviews.llvm.org/D92918
Files:
llvm/tools/llvm-link/llvm-link.cpp
Index: llvm/tools/llvm-link/llvm-link.cpp
===================================================================
--- llvm/tools/llvm-link/llvm-link.cpp
+++ llvm/tools/llvm-link/llvm-link.cpp
@@ -142,11 +142,9 @@
return Result;
}
-static std::unique_ptr<Module> loadArFile(const char *Argv0,
- std::unique_ptr<MemoryBuffer> Buffer,
- LLVMContext &Context, Linker &L,
- unsigned OrigFlags,
- unsigned ApplicableFlags) {
+static std::unique_ptr<Module>
+loadArFile(const char *Argv0, std::unique_ptr<MemoryBuffer> Buffer,
+ LLVMContext &Context, unsigned OrigFlags, unsigned ApplicableFlags) {
std::unique_ptr<Module> Result(new Module("ArchiveModule", Context));
StringRef ArchiveName = Buffer->getBufferIdentifier();
if (Verbose)
@@ -163,7 +161,7 @@
<< " failed to read name of archive member"
<< ArchiveName << "'\n";
return nullptr;
- };
+ }
std::string ChildName = Ename.get().str();
if (Verbose)
errs() << "Parsing member '" << ChildName
@@ -199,7 +197,7 @@
}
if (Verbose)
errs() << "Linking member '" << ChildName << "' of archive library.\n";
- if (L.linkModules(*Result, std::move(M), ApplicableFlags))
+ if (Linker::linkModules(*Result, std::move(M), ApplicableFlags))
return nullptr;
ApplicableFlags = OrigFlags;
} // end for each child
@@ -356,7 +354,7 @@
std::unique_ptr<Module> M =
identify_magic(Buffer->getBuffer()) == file_magic::archive
- ? loadArFile(argv0, std::move(Buffer), Context, L, Flags,
+ ? loadArFile(argv0, std::move(Buffer), Context, Flags,
ApplicableFlags)
: loadFile(argv0, std::move(Buffer), Context);
if (!M.get()) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92918.310769.patch
Type: text/x-patch
Size: 1907 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201210/e7f1655b/attachment.bin>
More information about the llvm-commits
mailing list