aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-08-20 20:56:47 -0700
committerGitHub <noreply@github.com>2024-08-20 20:56:47 -0700
commit0f22d47a7a1f70ec77ea8ccdf08a6487827937db (patch)
treee414e2d5c0cf5f1112cd78a873b25f9e04444f2d /clang/lib/CodeGen/CodeGenModule.cpp
parentd9b6e9f1c1565d9469eb0546da8c276051175408 (diff)
downloadllvm-0f22d47a7a1f70ec77ea8ccdf08a6487827937db.zip
llvm-0f22d47a7a1f70ec77ea8ccdf08a6487827937db.tar.gz
llvm-0f22d47a7a1f70ec77ea8ccdf08a6487827937db.tar.bz2
[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.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions