[all-commits] [llvm/llvm-project] c117c2: [Demangle] make llvm::demangle take std::string_vi...

Nick Desaulniers via All-commits all-commits at lists.llvm.org
Tue May 2 11:20:37 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c117c2c8ba4afd45a006043ec6dd858652b2ffcc
      https://github.com/llvm/llvm-project/commit/c117c2c8ba4afd45a006043ec6dd858652b2ffcc
  Author: Nick Desaulniers <ndesaulniers at google.com>
  Date:   2023-05-02 (Tue, 02 May 2023)

  Changed paths:
    M clang/lib/CodeGen/CodeGenAction.cpp
    M lld/COFF/Symbols.cpp
    M lld/ELF/SymbolTable.cpp
    M lld/ELF/Symbols.cpp
    M lld/MachO/Symbols.cpp
    M lld/wasm/Symbols.cpp
    M llvm/docs/ReleaseNotes.rst
    M llvm/include/llvm/Demangle/Demangle.h
    M llvm/lib/DebugInfo/LogicalView/Readers/LVCodeViewVisitor.cpp
    M llvm/lib/Demangle/Demangle.cpp
    M llvm/lib/IR/DiagnosticInfo.cpp
    M llvm/tools/llvm-objdump/ELFDump.cpp
    M llvm/tools/llvm-objdump/XCOFFDump.cpp
    M llvm/tools/llvm-objdump/llvm-objdump.cpp
    M llvm/tools/llvm-readobj/ELFDumper.cpp
    M llvm/tools/llvm-tli-checker/llvm-tli-checker.cpp

  Log Message:
  -----------
  [Demangle] make llvm::demangle take std::string_view rather than const std::string&

As suggested by @erichkeane in
https://reviews.llvm.org/D141451#inline-1429549

There's potential for a lot more cleanups around these APIs. This is
just a start.

Callers need to be more careful about sub-expressions producing strings
that don't outlast the expression using ``llvm::demangle``. Add a
release note.

Reviewed By: MaskRay, #lld-macho

Differential Revision: https://reviews.llvm.org/D149104




More information about the All-commits mailing list