summaryrefslogtreecommitdiff
path: root/lib/Analysis/DebugInfo.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-02-02 22:35:53 +0000
committerDevang Patel <dpatel@apple.com>2011-02-02 22:35:53 +0000
commite7d93877c6e7029d27bfd1c137fceb472f81f390 (patch)
treeea32df2a6afbe0ec72bf7c0edb502a72ef06feb8 /lib/Analysis/DebugInfo.cpp
parent7e2cb116556e1153401cd6b94d0f51db978f6902 (diff)
downloadllvm-e7d93877c6e7029d27bfd1c137fceb472f81f390.tar.gz
llvm-e7d93877c6e7029d27bfd1c137fceb472f81f390.tar.bz2
llvm-e7d93877c6e7029d27bfd1c137fceb472f81f390.tar.xz
Add support to describe template value parameter in debug info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124755 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DebugInfo.cpp')
-rw-r--r--lib/Analysis/DebugInfo.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp
index 1aaa60ebd2..5b786fa3c9 100644
--- a/lib/Analysis/DebugInfo.cpp
+++ b/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;