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 | a3512bd589ad9269ddaa4e9c008da43c36b4a1b8 (patch) | |
tree | 2da3538c4c519b77daf3c5d39a432a11c1e9c81a | |
parent | 931f8f3d126e8e502f71e6e27d5c6c03564006c0 (diff) |
add -debug output
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80539 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/IPO/ArgumentPromotion.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Transforms/IPO/ArgumentPromotion.cpp b/lib/Transforms/IPO/ArgumentPromotion.cpp index 18bd39afce..b1f7f045ac 100644 --- a/lib/Transforms/IPO/ArgumentPromotion.cpp +++ b/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())); |