From 57edbbf1b08be812a21df5582062556088767cdd Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Mon, 5 Jan 2009 19:55:07 +0000 Subject: Add classof() methods so that dwarf writer can decide what DIDescriptor is in its hand. llvm-svn: 61740 --- llvm/lib/Analysis/DebugInfo.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'llvm/lib/Analysis') diff --git a/llvm/lib/Analysis/DebugInfo.cpp b/llvm/lib/Analysis/DebugInfo.cpp index 8b802d7fffa..b5ff34ecaff 100644 --- a/llvm/lib/Analysis/DebugInfo.cpp +++ b/llvm/lib/Analysis/DebugInfo.cpp @@ -181,6 +181,11 @@ unsigned DIArray::getNumElements() const { return C->getNumOperands(); } +/// isSubrange - Return true if the specified tag is legal for DISubrange. +bool DISubrange::isSubrange(unsigned Tag) { + return Tag == dwarf::DW_TAG_subrange_type; +} + //===----------------------------------------------------------------------===// // DIFactory: Basic Helpers //===----------------------------------------------------------------------===// -- cgit v1.2.3