[all-commits] [llvm/llvm-project] ce7a54: [lldb] Add `operator StringRef` to ConstString

Dave Lee via All-commits all-commits at lists.llvm.org
Fri Apr 14 08:08:34 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ce7a54a27c0960e057a6eaf968d6967f75590fb1
      https://github.com/llvm/llvm-project/commit/ce7a54a27c0960e057a6eaf968d6967f75590fb1
  Author: Dave Lee <davelee.com at gmail.com>
  Date:   2023-04-14 (Fri, 14 Apr 2023)

  Changed paths:
    M lldb/include/lldb/Utility/ConstString.h
    M lldb/source/Core/Module.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list