[PATCH] D68204: [llvm-lib] Correctly handle .lib input files

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 30 02:27:14 PDT 2019


ruiu created this revision.
ruiu added reviewers: MaskRay, pcc.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

If archive files are passed as input files, llvm-lib needs to append
the members of the input archive files to the output file. This patch
implements that behavior.

This patch splits an existing function into smaller functions.
Effectively, the new code is only `if (Magic == file_magic::archive)
{ ... }` part.

Fixes https://bugs.llvm.org/show_bug.cgi?id=43452


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D68204

Files:
  llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp
  llvm/test/tools/llvm-lib/invalid.test
  llvm/test/tools/llvm-lib/nest.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68204.222379.patch
Type: text/x-patch
Size: 10996 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190930/c54a98f0/attachment.bin>


More information about the llvm-commits mailing list