[all-commits] [llvm/llvm-project] 256828: [clang] Don't use the AST to display backend diagn...

aeubanks via All-commits all-commits at lists.llvm.org
Mon Oct 4 14:20:20 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2568286892310877f24313c8e1626e415f9ae406
      https://github.com/llvm/llvm-project/commit/2568286892310877f24313c8e1626e415f9ae406
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2021-10-04 (Mon, 04 Oct 2021)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticFrontendKinds.td
    M clang/lib/CodeGen/CodeGenAction.cpp
    M clang/test/Frontend/backend-diagnostic.c
    M clang/test/Misc/backend-stack-frame-diagnostics-fallback.cpp
    M clang/test/Misc/backend-stack-frame-diagnostics.cpp

  Log Message:
  -----------
  [clang] Don't use the AST to display backend diagnostics

We keep a map from function name to source location so we don't have to
do it via looking up a source location from the AST. However, since
function names can be long, we actually use a hash of the function name
as the key.

Additionally, we can't rely on Clang's printing of function names via
the AST, so we just demangle the name instead.

This is necessary to implement
https://lists.llvm.org/pipermail/cfe-dev/2021-September/068930.html.

Reviewed By: dblaikie

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




More information about the All-commits mailing list