[llvm-commits] [llvm] r80539 - /llvm/trunk/lib/Transforms/IPO/ArgumentPromotion.cpp
Chris Lattner
sabre at nondot.org
Sun Aug 30 22:22:48 PDT 2009
Author: lattner
Date: Mon Aug 31 00:22:48 2009
New Revision: 80539
URL: http://llvm.org/viewvc/llvm-project?rev=80539&view=rev
Log:
add -debug output
Modified:
llvm/trunk/lib/Transforms/IPO/ArgumentPromotion.cpp
Modified: llvm/trunk/lib/Transforms/IPO/ArgumentPromotion.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/ArgumentPromotion.cpp?rev=80539&r1=80538&r2=80539&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/ArgumentPromotion.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/ArgumentPromotion.cpp Mon Aug 31 00:22:48 2009
@@ -593,6 +593,10 @@
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()));
More information about the llvm-commits
mailing list