[all-commits] [llvm/llvm-project] db4ff9: DebugInfo: Add support for template parameters wit...
David Blaikie via All-commits
all-commits at lists.llvm.org
Tue Sep 14 00:05:04 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: db4ff98bf9733605c713e75ab6677523e6d267cb
https://github.com/llvm/llvm-project/commit/db4ff98bf9733605c713e75ab6677523e6d267cb
Author: David Blaikie <dblaikie at gmail.com>
Date: 2021-09-14 (Tue, 14 Sep 2021)
Changed paths:
M clang/lib/CodeGen/CGDebugInfo.cpp
M clang/lib/CodeGen/CGDebugInfo.h
M clang/test/CodeGenCXX/debug-info-template.cpp
Log Message:
-----------
DebugInfo: Add support for template parameters with qualifiers
eg: t1<void () const> - DWARF doesn't have a particularly nice way to
encode this, for real member function types (like `void (t1::*)()
const`) the const-ness is encoded in the type of the artificial first
parameter. But `void () const` has no parameters, so encode it like a
normal const-qualified type, using DW_TAG_const_type. (similarly for
restrict and volatile)
Reference qualifiers (& and &&) coming in a separate commit shortly.
More information about the All-commits
mailing list