diff options
author | Matthijs Kooijman <matthijs@stdin.nl> | 2008-07-15 08:53:36 +0000 |
---|---|---|
committer | Matthijs Kooijman <matthijs@stdin.nl> | 2008-07-15 08:53:36 +0000 |
commit | 03016ca361d159f51b3fda200674d0ec652ba039 (patch) | |
tree | 52025b9208a8baa6ecd6f5f9b7f7229e496bf77b | |
parent | 0d1730a14c6f9e2723e79afe857d46c0c3793a0d (diff) | |
download | external_llvm-03016ca361d159f51b3fda200674d0ec652ba039.zip external_llvm-03016ca361d159f51b3fda200674d0ec652ba039.tar.gz external_llvm-03016ca361d159f51b3fda200674d0ec652ba039.tar.bz2 |
Simplify debug code by using RetOrArg::getDescription().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53598 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/IPO/DeadArgumentElimination.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/Transforms/IPO/DeadArgumentElimination.cpp b/lib/Transforms/IPO/DeadArgumentElimination.cpp index c40d264..b9feab6 100644 --- a/lib/Transforms/IPO/DeadArgumentElimination.cpp +++ b/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 |