[PATCH] D157010: [llvm][ADT] Make `Twine` aware of `StringLiteral`
    Jan Svoboda via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Aug  3 09:17:18 PDT 2023
    
    
  
jansvoboda11 created this revision.
jansvoboda11 added reviewers: dblaikie, benlangmuir.
Herald added subscribers: ributzka, hiraditya.
Herald added a project: All.
jansvoboda11 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
The `const char *` storage backing StringLiteral has static lifetime. Making `Twine` aware of that allows us to avoid allocating heap memory when printing its contents.
Repository:
  rG LLVM Github Monorepo
https://reviews.llvm.org/D157010
Files:
  llvm/include/llvm/ADT/Twine.h
  llvm/lib/Support/Twine.cpp
  llvm/unittests/ADT/TwineTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157010.546904.patch
Type: text/x-patch
Size: 4402 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230803/07f2c444/attachment.bin>
    
    
More information about the llvm-commits
mailing list