From: Chris Lattner Date: Sat, 13 Oct 2001 07:07:28 +0000 (+0000) Subject: MethodTypes take an explicit isVarArg argument X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b27c9e72d1112bbf266197042a02ccb011f7cf7e;p=oota-llvm.git MethodTypes take an explicit isVarArg argument git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@782 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp index 122420c1a1a..c8dc8ab08da 100644 --- a/tools/llc/llc.cpp +++ b/tools/llc/llc.cpp @@ -41,7 +41,7 @@ Method *MallocMeth = 0, *FreeMeth = 0; static void InsertMallocFreeDecls(Module *M) { const MethodType *MallocType = MethodType::get(PointerType::get(Type::UByteTy), - vector(1, Type::UIntTy)); + vector(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(1, PointerType::get(Type::UByteTy))); + vector(1, PointerType::get(Type::UByteTy)), + false); // Check for a definition of free if (Value *V = SymTab->lookup(PointerType::get(FreeType), "free")) {