[lldb] Add `operator StringRef` to ConstString
authorDave Lee <davelee.com@gmail.com>
Wed, 12 Apr 2023 21:44:19 +0000 (15:44 -0600)
committerDave Lee <davelee.com@gmail.com>
Fri, 14 Apr 2023 15:08:19 +0000 (09:08 -0600)
commitce7a54a27c0960e057a6eaf968d6967f75590fb1
treecf57c6c1fb53baa8c424847954dbeb641ea1a212
parent0a09f64e991387cef0ac84691c723d3aba6a09d8
[lldb] Add `operator StringRef` to ConstString

Add a `StringRef` conversion function to `ConstString`.

This will make using llvm, and other non-ConstString, APIs more convenient.

For demonstration, this updates Module.cpp.

Differential Revision: https://reviews.llvm.org/D148175
lldb/include/lldb/Utility/ConstString.h
lldb/source/Core/Module.cpp