From 4bd5f8ceca41c935de7bc531745cb9d448844ddc Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Mon, 8 Mar 2010 21:32:10 +0000 Subject: Remove DbgNode checks in constructor. Debug descriptors are intended to be light weight wrappers. llvm-svn: 97988 --- llvm/lib/Analysis/DebugInfo.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'llvm/lib/Analysis/DebugInfo.cpp') diff --git a/llvm/lib/Analysis/DebugInfo.cpp b/llvm/lib/Analysis/DebugInfo.cpp index 98082ffb18f..5e931c69f7c 100644 --- a/llvm/lib/Analysis/DebugInfo.cpp +++ b/llvm/lib/Analysis/DebugInfo.cpp @@ -69,15 +69,6 @@ bool DIDescriptor::ValidDebugInfo(MDNode *N, unsigned OptLevel) { return true; } -DIDescriptor::DIDescriptor(MDNode *N, unsigned RequiredTag) { - DbgNode = N; - - // If this is non-null, check to see if the Tag matches. If not, set to null. - if (N && getTag() != RequiredTag) { - DbgNode = 0; - } -} - StringRef DIDescriptor::getStringField(unsigned Elt) const { if (DbgNode == 0) -- cgit v1.2.3