diff options
| author | Devang Patel <dpatel@apple.com> | 2011-02-02 21:38:25 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2011-02-02 21:38:25 +0000 |
| commit | 3a9e65efb6019514fc332382f03b33afae484fb8 (patch) | |
| tree | 5209e6d136152c2303583453a51c53087ebd27f4 /llvm/lib/Analysis/DebugInfo.cpp | |
| parent | ac540b385900c95c185bd7d113420e6e4cdbd842 (diff) | |
| download | bcm5719-llvm-3a9e65efb6019514fc332382f03b33afae484fb8.tar.gz bcm5719-llvm-3a9e65efb6019514fc332382f03b33afae484fb8.zip | |
Add support to describe template parameter type in debug info.
llvm-svn: 124752
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 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; |

