diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-31 05:22:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-31 05:22:48 +0000 |
commit | 70ebbc59f39ae2a42118ca4db39f73af526383b7 (patch) | |
tree | 786ff015a722034feeb889a4dcb7892a10191ff9 /llvm/lib/Transforms | |
parent | 19dd315e678ac49e3f6cbc874bd4fb447fd41b2c (diff) | |
download | bcm5719-llvm-70ebbc59f39ae2a42118ca4db39f73af526383b7.tar.gz bcm5719-llvm-70ebbc59f39ae2a42118ca4db39f73af526383b7.zip |
add -debug output
llvm-svn: 80539
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/IPO/ArgumentPromotion.cpp | 4 |
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())); |