diff options
author | Jan Svoboda <jan_svoboda@apple.com> | 2023-07-28 15:38:49 -0700 |
---|---|---|
committer | Jan Svoboda <jan_svoboda@apple.com> | 2023-08-03 10:52:57 -0700 |
commit | 673d963436666000aba89e3b5c7a85056bdba8ce (patch) | |
tree | e61b99cb48d840475d990c938d94968b07c11f8e /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | e1ceae4b6039869f738436e09fe072779a61aadb (diff) | |
download | llvm-673d963436666000aba89e3b5c7a85056bdba8ce.zip llvm-673d963436666000aba89e3b5c7a85056bdba8ce.tar.gz llvm-673d963436666000aba89e3b5c7a85056bdba8ce.tar.bz2 |
[llvm][ADT] Make `Twine` aware of `StringLiteral`
The `const char *` storage backing StringLiteral has static lifetime. Making `Twine` aware of that allows us to avoid allocating heap memory in some contexts (e.g. avoid passing it to `StringSaver::save()` in a follow-up Clang patch).
Reviewed By: benlangmuir
Differential Revision: https://reviews.llvm.org/D157010
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions