summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitbe933b470a4b8189608bdcb0a79e89de65833131 (patch)
tree462d00142e8267c3549db3f3cd81780d629cb22a /llvm/lib/Analysis/DebugInfo.cpp
parent3c0d263abb7469f63c03df6ab21bfb5785457401 (diff)
downloadbcm5719-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.cpp6
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;
OpenPOWER on IntegriCloud