]> granicus.if.org Git - clang/commit
DebugInfo: Include default template arguments in template type names
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 2 Apr 2014 18:21:09 +0000 (18:21 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 2 Apr 2014 18:21:09 +0000 (18:21 +0000)
commita423c1ba2fc8e912e638854851733bc9a9148520
tree9cd8c0a70d06a8391927fd2f1a6156a07195d9dd
parent5de8d4d7a2dd8a0edd4fb3d9bd482ffd4f777fdd
DebugInfo: Include default template arguments in template type names

This was committed 4 years ago in 108916 with insufficient testing to
explain why the "getTypeAsWritten" case was appropriate. Experience says
that it isn't - the presence or absence of an explicit instantiation
declaration was causing this code to generate either i<int> or i<int,
int>.

That didn't seem to be a useful distinction, and omitting the template
arguments was destructive to debuggers being able to associate the two
types across translation units or across compilers (GCC, reasonably,
never omitted the arguments).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205447 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp
test/CodeGenCXX/debug-info-template-explicit-specialization.cpp