]> granicus.if.org Git - clang/commitdiff
Remove now dead code.
authorFrederic Riss <friss@apple.com>
Thu, 20 Nov 2014 16:24:29 +0000 (16:24 +0000)
committerFrederic Riss <friss@apple.com>
Thu, 20 Nov 2014 16:24:29 +0000 (16:24 +0000)
After LLVM r222434, the Variables field of DISubprograms for forward
declarations will always be null. No need to keep code around to
delete them.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@222437 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index 343b343207609986c4da37f46d54d2c63a039fa7..9506cef31d2457c81b5dd84a450922cd49efaddf 100644 (file)
@@ -3413,13 +3413,6 @@ void CGDebugInfo::finalize() {
     else
       VH = it->second;
 
-    // Functions have a fake temporary MDNode operand that is supposed
-    // to get RAUWed upon DIBuilder finalization. Do not leak these
-    // nodes for the temporary functions we are about to delete.
-    if (FwdDecl.isSubprogram())
-      if (llvm::MDNode *Vars = llvm::DISubprogram(FwdDecl).getVariablesNodes())
-        llvm::MDNode::deleteTemporary(Vars);
-
     FwdDecl.replaceAllUsesWith(CGM.getLLVMContext(),
                                llvm::DIDescriptor(cast<llvm::MDNode>(VH)));
   }