aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJan Svoboda <jan_svoboda@apple.com>2023-07-28 15:38:49 -0700
committerJan Svoboda <jan_svoboda@apple.com>2023-08-03 10:52:57 -0700
commit673d963436666000aba89e3b5c7a85056bdba8ce (patch)
treee61b99cb48d840475d990c938d94968b07c11f8e /clang/lib/Frontend/CompilerInvocation.cpp
parente1ceae4b6039869f738436e09fe072779a61aadb (diff)
downloadllvm-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