r222437 - Remove now dead code.
Frederic Riss
friss at apple.com
Thu Nov 20 08:24:29 PST 2014
Author: friss
Date: Thu Nov 20 10:24:29 2014
New Revision: 222437
URL: http://llvm.org/viewvc/llvm-project?rev=222437&view=rev
Log:
Remove now dead code.
After LLVM r222434, the Variables field of DISubprograms for forward
declarations will always be null. No need to keep code around to
delete them.
Modified:
cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=222437&r1=222436&r2=222437&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Thu Nov 20 10:24:29 2014
@@ -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)));
}
More information about the cfe-commits
mailing list