Author: evancheng Date: Fri Feb 1 22:10:17 2008 New Revision: 46660 URL: http://llvm.org/viewvc/llvm-project?rev=46660&view=rev Log: For ByVal parameter, no need to alloca a home for it on the callee frame since it's available on the caller frame.
Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=46660&r1=46659&r2=46660&view=diff ============================================================================== --- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original) +++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Fri Feb 1 22:10:17 2008 @@ -680,14 +680,10 @@ // the l-value for the argument IS the argument itself. AI->setName(Name); SET_DECL_LLVM(Args, AI); - if (!isInvRef && TheDebugInfo) { - Value *Tmp = CreateTemporary(PointerType::getUnqual(ArgTy)); - Tmp->setName(std::string(Name)+"_addr"); + if (!isInvRef && TheDebugInfo) TheDebugInfo->EmitDeclare(Args, llvm::dwarf::DW_TAG_arg_variable, - Name, TREE_TYPE(Args), Tmp, - Builder.GetInsertBlock()); - Builder.CreateStore(AI, Tmp); - } + Name, TREE_TYPE(Args), + AI, Builder.GetInsertBlock()); ++AI; } else { // Otherwise, we create an alloca to hold the argument value and provide _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits