[lld] [lld][ELF] Handle archive special casing in Input Sections (PR #119293)

via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 17 12:46:53 PST 2024


================
@@ -406,12 +406,25 @@ static inline StringRef getFilename(const InputFile *file) {
   return file ? file->getNameForScript() : StringRef();
 }
 
+static inline StringRef getArchiveName(const InputFile *file) {
+  return file ? static_cast<StringRef>(file->archiveName) : StringRef();
----------------
amosher-nvidia wrote:

Thanks for reviewing, I also went ahead and removed `getFilename` since it serves the same purpose.

https://github.com/llvm/llvm-project/pull/119293


More information about the llvm-commits mailing list