From 3a9e65efb6019514fc332382f03b33afae484fb8 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Wed, 2 Feb 2011 21:38:25 +0000 Subject: Add support to describe template parameter type in debug info. llvm-svn: 124752 --- llvm/lib/Analysis/DebugInfo.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'llvm/lib/Analysis/DebugInfo.cpp') diff --git a/llvm/lib/Analysis/DebugInfo.cpp b/llvm/lib/Analysis/DebugInfo.cpp index 9e802c64b0e..1aaa60ebd26 100644 --- a/llvm/lib/Analysis/DebugInfo.cpp +++ b/llvm/lib/Analysis/DebugInfo.cpp @@ -221,6 +221,12 @@ bool DIDescriptor::isScope() const { return false; } +/// isTemplateTypeParameter - Return true if the specified tag is +/// DW_TAG_template_type_parameter. +bool DIDescriptor::isTemplateTypeParameter() const { + return DbgNode && getTag() == dwarf::DW_TAG_template_type_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; -- cgit v1.2.3