[lld] [llvm] [DTLTO][LLD][ELF] Support bitcode members of thin archives (PR #149425)
    Fangrui Song via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Jul 31 22:28:07 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) {
----------------
MaskRay wrote:
The parameter type can use `SmallString<128>` to remove a SmallString->string conversion.
https://github.com/llvm/llvm-project/pull/149425
    
    
More information about the llvm-commits
mailing list