diff options
| author | Chris Lattner <sabre@nondot.org> | 2003-04-16 20:28:45 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2003-04-16 20:28:45 +0000 |
| commit | 379a8d2d1cb3f5b6dbe13b94ed09a29d3e400a89 (patch) | |
| tree | 76f2336957b62005e10d223d5493eda780e27cef /llvm/lib/Transforms/Utils/CloneFunction.cpp | |
| parent | f0e92b575f675ee8fb09b7fdb56cc27e8a5bdd21 (diff) | |
| download | bcm5719-llvm-379a8d2d1cb3f5b6dbe13b94ed09a29d3e400a89.tar.gz bcm5719-llvm-379a8d2d1cb3f5b6dbe13b94ed09a29d3e400a89.zip | |
Add new linkage types to support a real frontend
llvm-svn: 5786
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneFunction.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Utils/CloneFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneFunction.cpp b/llvm/lib/Transforms/Utils/CloneFunction.cpp index ca22003b409..512bd38d839 100644 --- a/llvm/lib/Transforms/Utils/CloneFunction.cpp +++ b/llvm/lib/Transforms/Utils/CloneFunction.cpp @@ -110,7 +110,7 @@ Function *CloneFunction(const Function *F, ArgTypes, F->getFunctionType()->isVarArg()); // Create the new function... - Function *NewF = new Function(FTy, F->hasInternalLinkage(), F->getName()); + Function *NewF = new Function(FTy, F->getLinkage(), F->getName()); // Loop over the arguments, copying the names of the mapped arguments over... Function::aiterator DestI = NewF->abegin(); |

