add -debug output
authorChris Lattner <sabre@nondot.org>
Mon, 31 Aug 2009 05:22:48 +0000 (05:22 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 31 Aug 2009 05:22:48 +0000 (05:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80539 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/ArgumentPromotion.cpp

index 18bd39afce853d21a8b224a72b865bdff55e022f..b1f7f045ac028594342777a58f19ad5f1b4a8fd5 100644 (file)
@@ -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()));