[llvm] [DTLTO][NFC] Minor improvements to DTLTO archive support class (PR #176770)

Rose Hudson via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 20 02:28:32 PST 2026


================
@@ -73,17 +76,15 @@ SmallString<64> computeThinArchiveMemberPath(const StringRef ArchivePath,
 
 // Determines if a file at the given path is a thin archive file.
 //
-// This function uses a cache to avoid repeatedly reading the same file.
-// It reads only the header portion (magic bytes) of the file to identify
-// the archive type.
-Expected<bool> lto::DTLTO::isThinArchive(const StringRef ArchivePath) {
+// This function uses a cache to avoid repeatedly reading the same file. It
+// reads only the header portion (magic bytes) to identify the archive type.
+Expected<bool> lto::DTLTO::isThinArchive(StringRef ArchivePath) {
----------------
rosefromthedead wrote:

Same

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


More information about the llvm-commits mailing list