From c280ff0e4756581cd548dae9a59862946522d18d Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Wed, 3 Dec 2014 04:13:23 +0000 Subject: [PATCH] NVPTX: Delete dead code `MDNode` does not inherit from `User`, and it never has a name. llvm-svn: 223198 --- llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp b/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp index 35ba4f1..fe8452e 100644 --- a/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp +++ b/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp @@ -793,11 +793,6 @@ static bool usedInOneFunc(const User *U, Function const *&oneFunc) { return false; } - if (const MDNode *md = dyn_cast(U)) - if (md->hasName() && ((md->getName().str() == "llvm.dbg.gv") || - (md->getName().str() == "llvm.dbg.sp"))) - return true; - for (const User *UU : U->users()) if (usedInOneFunc(UU, oneFunc) == false) return false; -- 2.7.4