diff options
author | Frederic Riss <friss@apple.com> | 2014-11-20 16:24:29 +0000 |
---|---|---|
committer | Frederic Riss <friss@apple.com> | 2014-11-20 16:24:29 +0000 |
commit | 73feb0c5202e118c7467ae99466bf446239da7b7 (patch) | |
tree | a437a6a8ec9778484c6e82b6f722b78c85d3b28d /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | 77a0743216686f301ddbd5e2dcee075f8dea61a9 (diff) | |
download | bcm5719-llvm-73feb0c5202e118c7467ae99466bf446239da7b7.tar.gz bcm5719-llvm-73feb0c5202e118c7467ae99466bf446239da7b7.zip |
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.
llvm-svn: 222437
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 343b3432076..9506cef31d2 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -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))); } |