diff options
author | Chris Lattner <sabre@nondot.org> | 2010-06-29 00:14:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-06-29 00:14:52 +0000 |
commit | 225e286110bcc8b7b1ff8b35f0d51a10a158b18c (patch) | |
tree | 6ef8184348678e71d18ac0fbfbc7678742def37d /lib | |
parent | 309c59f6d3a4fd883fdf87334271df2c55338aae (diff) |
add IR names to coerced arguments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107105 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/CGCall.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp index 4d72d91cb7..7ade4272fa 100644 --- a/lib/CodeGen/CGCall.cpp +++ b/lib/CodeGen/CGCall.cpp @@ -910,6 +910,7 @@ void CodeGenFunction::EmitFunctionProlog(const CGFunctionInfo &FI, if (STy == cast<llvm::PointerType>(V->getType())->getElementType()) { for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { assert(AI != Fn->arg_end() && "Argument mismatch!"); + AI->setName(Arg->getName() + ".coerce" + llvm::Twine(i)); llvm::Value *EltPtr = Builder.CreateConstGEP2_32(V, 0, i); Builder.CreateStore(AI++, EltPtr); } @@ -918,6 +919,7 @@ void CodeGenFunction::EmitFunctionProlog(const CGFunctionInfo &FI, llvm::Value *FormalArg = llvm::UndefValue::get(STy); for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { assert(AI != Fn->arg_end() && "Argument mismatch!"); + AI->setName(Arg->getName() + ".coerce" + llvm::Twine(i)); FormalArg = Builder.CreateInsertValue(FormalArg, AI++, i); } CreateCoercedStore(FormalArg, V, /*DestIsVolatile=*/false, *this); @@ -925,6 +927,7 @@ void CodeGenFunction::EmitFunctionProlog(const CGFunctionInfo &FI, } else { // Simple case, just do a coerced store of the argument into the alloca. assert(AI != Fn->arg_end() && "Argument mismatch!"); + AI->setName(Arg->getName() + ".coerce"); CreateCoercedStore(AI++, V, /*DestIsVolatile=*/false, *this); } |