[M68k] Do not pass llvm::Function& to M68kCCState
authorMin-Yih Hsu <minyihh@uci.edu>
Mon, 16 Aug 2021 00:19:33 +0000 (17:19 -0700)
committerMin-Yih Hsu <minyihh@uci.edu>
Mon, 16 Aug 2021 22:33:08 +0000 (15:33 -0700)
commiteec3495a9d8060ebd0a90fb8b84f51ed24cf8c9d
tree629e91a7a3fb1ce991576642fbd3b792cb7d89ac
parent913b5d2f7af71b20be332064787baa1ec3f570c0
[M68k] Do not pass llvm::Function& to M68kCCState

Previously we're passing `llvm::Function&` into `M68kCCState` to lower
arguments in fastcc. However, that reference might not be available if
it's a library call and we only need its argument types. Therefore,
now we're simply passing a list of argument llvm::Type-s.

This fixes PR-50752.

Differential Revision: https://reviews.llvm.org/D108101
llvm/lib/Target/M68k/M68kCallingConv.h
llvm/lib/Target/M68k/M68kISelLowering.cpp