mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +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:
1 parent
1d7b50b4f8
commit
b27c9e72d1
1 file changed
+3
-2
+3
-2
@@ -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")) {
|
||||
|
||||
Reference in new issue
Block a user