diff options
author | Devang Patel <dpatel@apple.com> | 2011-02-02 22:35:53 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-02-02 22:35:53 +0000 |
commit | be933b470a4b8189608bdcb0a79e89de65833131 (patch) | |
tree | 462d00142e8267c3549db3f3cd81780d629cb22a /llvm/lib/Analysis/DebugInfo.cpp | |
parent | 3c0d263abb7469f63c03df6ab21bfb5785457401 (diff) | |
download | bcm5719-llvm-be933b470a4b8189608bdcb0a79e89de65833131.tar.gz bcm5719-llvm-be933b470a4b8189608bdcb0a79e89de65833131.zip |
Add support to describe template value parameter in debug info.
llvm-svn: 124755
Diffstat (limited to 'llvm/lib/Analysis/DebugInfo.cpp')
-rw-r--r-- | llvm/lib/Analysis/DebugInfo.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/DebugInfo.cpp b/llvm/lib/Analysis/DebugInfo.cpp index 1aaa60ebd26..5b786fa3c93 100644 --- a/llvm/lib/Analysis/DebugInfo.cpp +++ b/llvm/lib/Analysis/DebugInfo.cpp @@ -227,6 +227,12 @@ bool DIDescriptor::isTemplateTypeParameter() const { return DbgNode && getTag() == dwarf::DW_TAG_template_type_parameter; } +/// isTemplateValueParameter - Return true if the specified tag is +/// DW_TAG_template_value_parameter. +bool DIDescriptor::isTemplateValueParameter() const { + return DbgNode && getTag() == dwarf::DW_TAG_template_value_parameter; +} + /// isCompileUnit - Return true if the specified tag is DW_TAG_compile_unit. bool DIDescriptor::isCompileUnit() const { return DbgNode && getTag() == dwarf::DW_TAG_compile_unit; |