MethodTypes take an explicit isVarArg argument
authorChris Lattner <sabre@nondot.org>
Sat, 13 Oct 2001 07:07:28 +0000 (07:07 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 13 Oct 2001 07:07:28 +0000 (07:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@782 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llc/llc.cpp

index 122420c1a1a9f42acdfb44b57b03786264d8b29d..c8dc8ab08da6cf6d1fec49800e58b181bb00b23d 100644 (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")) {