[all-commits] [llvm/llvm-project] 9b825d: [LLDB][NativePDB] Fix PdbAstBuilder::GetParentDecl...

Zequan Wu via All-commits all-commits at lists.llvm.org
Thu Sep 8 10:42:31 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9b825dcdb267ee21e75e279c79ec2b3c50fd7346
      https://github.com/llvm/llvm-project/commit/9b825dcdb267ee21e75e279c79ec2b3c50fd7346
  Author: Zequan Wu <zequanwu at google.com>
  Date:   2022-09-08 (Thu, 08 Sep 2022)

  Changed paths:
    M lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp
    M lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.h
    A lldb/test/Shell/SymbolFile/NativePDB/icf.cpp

  Log Message:
  -----------
  [LLDB][NativePDB] Fix PdbAstBuilder::GetParentDeclContext when ICF happens.

Removed `GetParentDeclContextForSymbol` as this is not necesssary. We can get
the demangled names from CVSymbol and then using it to create tag decl or
namespace decl. This also fixed a bug when icf applied.

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




More information about the All-commits mailing list