s/Method/Function

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2034 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2002-03-29 03:44:36 +00:00
parent 6056c49ca0
commit 6bfd6a578a
9 changed files with 61 additions and 58 deletions

View File

@ -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...