[llvm-commits] [poolalloc] r131638 - /poolalloc/trunk/lib/AssistDS/StructReturnToPointer.cpp
Arushi Aggarwal
aggarwa4 at illinois.edu
Thu May 19 08:01:13 PDT 2011
Author: aggarwa4
Date: Thu May 19 10:01:13 2011
New Revision: 131638
URL: http://llvm.org/viewvc/llvm-project?rev=131638&view=rev
Log:
The cloned function created, should have internal
linkage.
Modified:
poolalloc/trunk/lib/AssistDS/StructReturnToPointer.cpp
Modified: poolalloc/trunk/lib/AssistDS/StructReturnToPointer.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/AssistDS/StructReturnToPointer.cpp?rev=131638&r1=131637&r2=131638&view=diff
==============================================================================
--- poolalloc/trunk/lib/AssistDS/StructReturnToPointer.cpp (original)
+++ poolalloc/trunk/lib/AssistDS/StructReturnToPointer.cpp Thu May 19 10:01:13 2011
@@ -73,7 +73,9 @@
const FunctionType *NFTy = FunctionType::get(F->getReturnType(), TP, F->isVarArg());
// Create the new function body and insert it into the module.
- Function *NF = Function::Create(NFTy, F->getLinkage(), F->getName(), &M);
+ Function *NF = Function::Create(NFTy,
+ GlobalValue::InternalLinkage,
+ F->getName(), &M);
DenseMap<const Value*, Value*> ValueMap;
Function::arg_iterator NI = NF->arg_begin();
NI->setName("ret");
More information about the llvm-commits
mailing list