Files
clang-p2996/llvm/lib/LTO/ThinLTOCodeGenerator.cpp
Kazu Hirata 0f22d47a7a [LTO] Teach computeLTOCacheKey to return std::string (NFC) (#105331)
Without this patch, computeLTOCacheKey computes SHA1, creates its
hexadecimal representation with toHex, which returns std::string, and
then copies it to an output parameter of type SmallString.

This patch removes the redirection and teaches computeLTOCacheKey to
directly return std::string computed by toHex.  With the move
semantics, no buffer copy should be involved.

While I am at it, this patch adds a Twine to concatenate two strings.
2024-08-20 20:56:47 -07:00

48 KiB