summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-31 05:22:48 +0000
committerChris Lattner <sabre@nondot.org>2009-08-31 05:22:48 +0000
commit70ebbc59f39ae2a42118ca4db39f73af526383b7 (patch)
tree786ff015a722034feeb889a4dcb7892a10191ff9 /llvm/lib/Transforms/IPO
parent19dd315e678ac49e3f6cbc874bd4fb447fd41b2c (diff)
downloadbcm5719-llvm-70ebbc59f39ae2a42118ca4db39f73af526383b7.tar.gz
bcm5719-llvm-70ebbc59f39ae2a42118ca4db39f73af526383b7.zip
add -debug output
llvm-svn: 80539
Diffstat (limited to 'llvm/lib/Transforms/IPO')
-rw-r--r--llvm/lib/Transforms/IPO/ArgumentPromotion.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
index 18bd39afce8..b1f7f045ac0 100644
--- a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
+++ b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
@@ -593,6 +593,10 @@ CallGraphNode *ArgPromotion::DoPromotion(Function *F,
Function *NF = Function::Create(NFTy, F->getLinkage(), F->getName());
NF->copyAttributesFrom(F);
+
+ DEBUG(errs() << "ARG PROMOTION: Promoting to:" << *NF << "\n"
+ << "From: " << *F);
+
// Recompute the parameter attributes list based on the new arguments for
// the function.
NF->setAttributes(AttrListPtr::get(AttributesVec.begin(), AttributesVec.end()));
OpenPOWER on IntegriCloud