From f2860b9fb3b03df2ab5bbfbd84bfb48af1b9a293 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Tue, 15 Jul 2008 08:53:36 +0000 Subject: [PATCH] Simplify debug code by using RetOrArg::getDescription(). llvm-svn: 53598 --- llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp b/llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp index c40d2640d7a9..b9feab6d8b07 100644 --- a/llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp +++ b/llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp @@ -544,12 +544,7 @@ void DAE::MarkLive(RetOrArg RA) { if (!LiveValues.insert(RA).second) return; // We were already marked Live. - if (RA.IsArg) - DOUT << "DAE - Marking argument " << RA.Idx << " to function " - << RA.F->getNameStart() << " live\n"; - else - DOUT << "DAE - Marking return value " << RA.Idx << " of function " - << RA.F->getNameStart() << " live\n"; + DOUT << "DAE - Marking " << RA.getDescription() << " live\n"; // We don't use upper_bound (or equal_range) here, because our recursive call // to ourselves is likely to cause the upper_bound (which is the first value