mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-20 09:30:43 +00:00
add -debug output
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80539 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
931f8f3d12
commit
a3512bd589
@ -593,6 +593,10 @@ CallGraphNode *ArgPromotion::DoPromotion(Function *F,
|
|||||||
Function *NF = Function::Create(NFTy, F->getLinkage(), F->getName());
|
Function *NF = Function::Create(NFTy, F->getLinkage(), F->getName());
|
||||||
NF->copyAttributesFrom(F);
|
NF->copyAttributesFrom(F);
|
||||||
|
|
||||||
|
|
||||||
|
DEBUG(errs() << "ARG PROMOTION: Promoting to:" << *NF << "\n"
|
||||||
|
<< "From: " << *F);
|
||||||
|
|
||||||
// Recompute the parameter attributes list based on the new arguments for
|
// Recompute the parameter attributes list based on the new arguments for
|
||||||
// the function.
|
// the function.
|
||||||
NF->setAttributes(AttrListPtr::get(AttributesVec.begin(), AttributesVec.end()));
|
NF->setAttributes(AttrListPtr::get(AttributesVec.begin(), AttributesVec.end()));
|
||||||
|
Loading…
Reference in New Issue
Block a user