diff options
author | Chris Lattner <sabre@nondot.org> | 2001-10-13 07:07:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-10-13 07:07:28 +0000 |
commit | b27c9e72d1112bbf266197042a02ccb011f7cf7e (patch) | |
tree | 081b28670c03ae08456f5a6964e22d658b7b72ca /tools/llc | |
parent | 1d7b50b4f823012dc283e46c2bd8036d32b402f4 (diff) | |
download | llvm-b27c9e72d1112bbf266197042a02ccb011f7cf7e.tar.gz llvm-b27c9e72d1112bbf266197042a02ccb011f7cf7e.tar.bz2 llvm-b27c9e72d1112bbf266197042a02ccb011f7cf7e.tar.xz |
MethodTypes take an explicit isVarArg argument
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@782 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llc')
-rw-r--r-- | tools/llc/llc.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp index 122420c1a1..c8dc8ab08d 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<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")) { |