Add an optional attribute referring to a tuple of type and value template parameter nodes to the DIGlobalVariable node. This allows us to record the parameters of template variable specializations.
Details
- Reviewers
dblaikie aprantl probinson JDevlieghere clayborg jingham - Commits
- rG2016536304c6: Add template type and value parameter metadata nodes to template variable…
rL343707: Add template type and value parameter metadata nodes to template variable…
rC343707: Add template type and value parameter metadata nodes to template variable…
Diff Detail
- Repository
- rC Clang
Event Timeline
Generally this looks good, but I'd like for the other to have a look first (at this and the other patch) before accepting.
lib/CodeGen/CGDebugInfo.cpp | ||
---|---|---|
1783 | Might be nice to add a comment here saying what you're doing in this block and below. Looks like the top one is for partial specialization and the bottom one for the general case? | |
1783 | I also suggest to extract TS->getSpecializedTemplateOrPartial() into a variable to make this a little less dense. |
Sounds good. Thanks for your comments!
lib/CodeGen/CGDebugInfo.cpp | ||
---|---|---|
1783 | Hmm... Yeah. I'll take a look at clarifying this section. |
s/templateParameters/TemplateParameters/ (same for the rest of this patch)