llvm-link should not rely on the '.a' file extension when deciding if input file
should be loaded as archive. Archives may have other extensions (f.e. .lib) or no
extensions at all. This patch changes llvm-link to use llvm::file_magic to check
if input file is an archive.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
I guess the buffer part could be committed first but I'd be OK with this as is. Let's give others a chance to comment.