From 225e286110bcc8b7b1ff8b35f0d51a10a158b18c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 29 Jun 2010 00:14:52 +0000 Subject: add IR names to coerced arguments. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107105 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGCall.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/CodeGen/CGCall.cpp') 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(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); } -- cgit v1.2.3-18-g5258