diff options
Diffstat (limited to 'contrib/llvm-project/clang/lib/AST/Interp/Disasm.cpp')
-rw-r--r-- | contrib/llvm-project/clang/lib/AST/Interp/Disasm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/llvm-project/clang/lib/AST/Interp/Disasm.cpp b/contrib/llvm-project/clang/lib/AST/Interp/Disasm.cpp index 293fdd4b3256..c1c18f832d4f 100644 --- a/contrib/llvm-project/clang/lib/AST/Interp/Disasm.cpp +++ b/contrib/llvm-project/clang/lib/AST/Interp/Disasm.cpp @@ -26,10 +26,10 @@ LLVM_DUMP_METHOD void Function::dump() const { dump(llvm::errs()); } LLVM_DUMP_METHOD void Function::dump(llvm::raw_ostream &OS) const { if (F) { if (auto *Cons = dyn_cast<CXXConstructorDecl>(F)) { - const std::string &Name = Cons->getParent()->getNameAsString(); + DeclarationName Name = Cons->getParent()->getDeclName(); OS << Name << "::" << Name << ":\n"; } else { - OS << F->getNameAsString() << ":\n"; + OS << F->getDeclName() << ":\n"; } } else { OS << "<<expr>>\n"; |