[Lldb-commits] [lldb] fe73d36 - Fix lldb build failure due to clang mangler change
Yaxun Liu via lldb-commits
lldb-commits at lists.llvm.org
Sat Mar 7 21:39:06 PST 2020
Author: Yaxun (Sam) Liu
Date: 2020-03-08T00:38:30-05:00
New Revision: fe73d36f2326060ad4e8059cf9e18619084df5b3
URL: https://github.com/llvm/llvm-project/commit/fe73d36f2326060ad4e8059cf9e18619084df5b3
DIFF: https://github.com/llvm/llvm-project/commit/fe73d36f2326060ad4e8059cf9e18619084df5b3.diff
LOG: Fix lldb build failure due to clang mangler change
Added:
Modified:
lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
index 3b8c058c903a..47f1a852289a 100644
--- a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
+++ b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
@@ -8843,11 +8843,15 @@ ConstString TypeSystemClang::DeclGetMangledName(void *opaque_decl) {
llvm::SmallVector<char, 1024> buf;
llvm::raw_svector_ostream llvm_ostrm(buf);
if (llvm::isa<clang::CXXConstructorDecl>(nd)) {
- mc->mangleCXXCtor(llvm::dyn_cast<clang::CXXConstructorDecl>(nd),
- Ctor_Complete, llvm_ostrm);
+ mc->mangleName(
+ clang::GlobalDecl(llvm::dyn_cast<clang::CXXConstructorDecl>(nd),
+ Ctor_Complete),
+ llvm_ostrm);
} else if (llvm::isa<clang::CXXDestructorDecl>(nd)) {
- mc->mangleCXXDtor(llvm::dyn_cast<clang::CXXDestructorDecl>(nd),
- Dtor_Complete, llvm_ostrm);
+ mc->mangleName(
+ clang::GlobalDecl(llvm::dyn_cast<clang::CXXDestructorDecl>(nd),
+ Dtor_Complete),
+ llvm_ostrm);
} else {
mc->mangleName(nd, llvm_ostrm);
}
More information about the lldb-commits
mailing list