aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/Linker.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-03-29 03:44:36 +0000
committerChris Lattner <sabre@nondot.org>2002-03-29 03:44:36 +0000
commit6bfd6a578a3a4fa95c585c988ee712ba880f9923 (patch)
tree6aa26e909e914bc209fe22afbd7c45df787ac61c /lib/Transforms/Utils/Linker.cpp
parent6056c49ca0e86e222b4bd7184a4b23c9277ab065 (diff)
s/Method/Function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2034 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/Linker.cpp')
-rw-r--r--lib/Transforms/Utils/Linker.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/Linker.cpp b/lib/Transforms/Utils/Linker.cpp
index f3b0084dfc..f3955c89b4 100644
--- a/lib/Transforms/Utils/Linker.cpp
+++ b/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...