MethodTypes take an explicit isVarArg argument

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@782 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2001-10-13 07:07:28 +00:00
parent 1d7b50b4f8
commit b27c9e72d1

View File

@ -41,7 +41,7 @@ Method *MallocMeth = 0, *FreeMeth = 0;
static void InsertMallocFreeDecls(Module *M) {
const MethodType *MallocType =
MethodType::get(PointerType::get(Type::UByteTy),
vector<const Type*>(1, Type::UIntTy));
vector<const Type*>(1, Type::UIntTy), false);
SymbolTable *SymTab = M->getSymbolTableSure();
@ -54,7 +54,8 @@ static void InsertMallocFreeDecls(Module *M) {
const MethodType *FreeType =
MethodType::get(Type::VoidTy,
vector<const Type*>(1, PointerType::get(Type::UByteTy)));
vector<const Type*>(1, PointerType::get(Type::UByteTy)),
false);
// Check for a definition of free
if (Value *V = SymTab->lookup(PointerType::get(FreeType), "free")) {