Get rid of obsolete TargetABI::newFunctionType() and doneWithFunctionType().

This commit is contained in:
Martin 2014-11-16 15:41:59 +01:00
parent a00c2b5732
commit f5592048e5
5 changed files with 0 additions and 23 deletions

View file

@ -71,8 +71,6 @@ llvm::FunctionType* DtoFunctionType(Type* type, IrFuncTy &irFty, Type* thistype,
if (irFty.funcType) return irFty.funcType;
TargetABI* abi = (isIntrinsic ? TargetABI::getIntrinsic() : gABI);
// Tell the ABI we're resolving a new function type
abi->newFunctionType(f);
// Do not modify irFty yet; this function may be called recursively if any
// of the argument types refer to this type.
@ -255,9 +253,6 @@ llvm::FunctionType* DtoFunctionType(Type* type, IrFuncTy &irFty, Type* thistype,
// let the abi rewrite the types as necesary
abi->rewriteFunctionType(f, newIrFty);
// Tell the ABI we're done with this function type
abi->doneWithFunctionType();
// Now we can modify irFty safely.
irFty = llvm_move(newIrFty);