RISCV: Don't store function in RISCVMachineFunctionInfo
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 30 Jun 2020 19:41:03 +0000 (15:41 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 30 Jun 2020 20:08:51 +0000 (16:08 -0400)
commit08649f0a9da55f069e5bfcb2bd107d8e24068e76
tree63ec1b6ee4ae5a21e2262add49188e7a06012e41
parentd9f0c3663f023ce2935b18dda3c3c7cbd7bf666b
RISCV: Don't store function in RISCVMachineFunctionInfo

Targets should not depend on the MachineFunction state during the
MachineFunctionInfo construction.
llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/lib/Target/RISCV/RISCVMachineFunctionInfo.h
llvm/lib/Target/RISCV/RISCVRegisterInfo.cpp