[all-commits] [llvm/llvm-project] 8abbc1: reland: [Demangle] make llvm::demangle take std::s...

Nick Desaulniers via All-commits all-commits at lists.llvm.org
Tue Jun 6 10:18:29 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8abbc17ff3b1390581600d1b9b37888f4b8ba50e
      https://github.com/llvm/llvm-project/commit/8abbc17ff3b1390581600d1b9b37888f4b8ba50e
  Author: Nick Desaulniers <ndesaulniers at google.com>
  Date:   2023-06-06 (Tue, 06 Jun 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:
  -----------
  reland: [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.

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




More information about the All-commits mailing list