[lld] [llvm] [DTLTO][LLD][ELF] Support bitcode members of thin archives (PR #149425)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 1 01:27:04 PDT 2025
================
@@ -1753,6 +1754,39 @@ static uint8_t getOsAbi(const Triple &t) {
}
}
+// For DTLTO, bitcode member names must be valid paths to files on disk.
+// For thin archives, resolve `memberPath` relative to the archive's location.
+// Returns true if adjusted; false otherwise. Non-thin archives are unsupported.
+static bool dtltoAdjustMemberPathIfThinArchive(Ctx &ctx, StringRef archivePath,
+ std::string &memberPath) {
----------------
bd1976bris wrote:
Thanks. This requires a slightly wider set of changes as `Path` in `BitcodeFile` constructor is a std::string. I will therefore tackle this in a follow up change.
https://github.com/llvm/llvm-project/pull/149425
More information about the llvm-commits
mailing list