diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-03-29 03:44:36 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-03-29 03:44:36 +0000 |
| commit | 91db58298aa4b717289aa25ad8d0709b1a72a70b (patch) | |
| tree | 28cc8a53c41bb3e41dc813d90decb1a2ff88f8b4 /llvm/lib/Transforms | |
| parent | a483b0616a2605863f371cb63f5d4ffd03ef0460 (diff) | |
| download | bcm5719-llvm-91db58298aa4b717289aa25ad8d0709b1a72a70b.tar.gz bcm5719-llvm-91db58298aa4b717289aa25ad8d0709b1a72a70b.zip | |
s/Method/Function
llvm-svn: 2034
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Utils/Linker.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/Linker.cpp b/llvm/lib/Transforms/Utils/Linker.cpp index f3b0084dfcc..f3955c89b44 100644 --- a/llvm/lib/Transforms/Utils/Linker.cpp +++ b/llvm/lib/Transforms/Utils/Linker.cpp @@ -263,7 +263,7 @@ static bool LinkFunctionProtos(Module *Dest, const Module *Src, // Check to make sure the method is not defined in both modules... if (!SM->isExternal() && !DM->isExternal()) return Error(Err, "Function '" + - SM->getMethodType()->getDescription() + "':\"" + + SM->getFunctionType()->getDescription() + "':\"" + SM->getName() + "\" - Function is already defined!"); // Otherwise, just remember this mapping... @@ -271,7 +271,8 @@ static bool LinkFunctionProtos(Module *Dest, const Module *Src, } else { // Function does not already exist, simply insert an external method // signature identical to SM into the dest module... - Function *DM = new Function(SM->getMethodType(), SM->hasInternalLinkage(), + Function *DM = new Function(SM->getFunctionType(), + SM->hasInternalLinkage(), SM->getName()); // Add the method signature to the dest module... |

