[PATCH] D46138: Emit template type and value parameter DIEs for template variables.

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 26 11:40:11 PDT 2018


dblaikie added a comment.

In https://reviews.llvm.org/D46138#1079876, @aprantl wrote:

> I'm sorry if this was discussed earlier... Why are the template parameters attached to the variable, rather than the type?


Because these are template variables, not template types - a newer (C++14?) feature:

template<typename T> T t;
...
t<int> = 3;
t<std::string> = "foo";
etc...


Repository:
  rL LLVM

https://reviews.llvm.org/D46138





More information about the llvm-commits mailing list