1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

MethodTypes take an explicit isVarArg argument

llvm-svn: 782
This commit is contained in:
Chris Lattner 2001-10-13 07:07:28 +00:00
parent 98615da75e
commit 96e32057bc

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")) {