mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
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:
parent
1d7b50b4f8
commit
b27c9e72d1
@ -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")) {
|
||||
|
Loading…
Reference in New Issue
Block a user