Add Twine support for std::string_view.
authorSterling Augustine <saugustine@google.com>
Tue, 8 Jun 2021 23:57:26 +0000 (16:57 -0700)
committerSterling Augustine <saugustine@google.com>
Wed, 9 Jun 2021 03:19:04 +0000 (20:19 -0700)
commite11b5b87bebf2aad41ad769015a21567198291b9
treedd820ed8ae02abaedd48b86e9e1b1180fa372abc
parent242ddd50897cef56de3e4f993bbd0c70a22f528f
Add Twine support for std::string_view.

With Twine now ubiquitous after rG92a79dbe91413f685ab19295fc7a6297dbd6c824,
it needs support for string_view when building clang with newer C++ standards.

This is similar to how StringRef is handled.

Differential Revision: https://reviews.llvm.org/D103935
llvm/include/llvm/ADT/Twine.h
llvm/include/llvm/Support/raw_ostream.h
llvm/lib/Support/Twine.cpp
llvm/unittests/ADT/TwineTest.cpp