[WebAssembly] Remove MachineFrameInfo arg from checking functions (NFC)
authorHeejin Ahn <aheejin@gmail.com>
Wed, 22 Aug 2018 18:53:48 +0000 (18:53 +0000)
committerHeejin Ahn <aheejin@gmail.com>
Wed, 22 Aug 2018 18:53:48 +0000 (18:53 +0000)
commitbc6d8970bb6ec44e1a0c8015a803fa382953dfa4
tree834bab4054620e1abeea0c7223dfb703815105d9
parenta2133f1a681dbcfce14d705252c75eb741c0d7ec
[WebAssembly] Remove MachineFrameInfo arg from checking functions (NFC)

Summary:
There are several functions in the form of `has***` or `needs***` in
`WebAssemblyFrameLowering` and its `MachineFrameInfo` argument can be
obtained from `MachineFunction` so it is not necessarily has to be
passed from a caller. Also, it is more in line with other overriden
fuctions like `hasBP` or `hasReservedCallFrame`, which also take only
`MachineFunction` argument.

Reviewers: dschuff

Subscribers: sbc100, sunfish, llvm-commits

Differential Revision: https://reviews.llvm.org/D51116

llvm-svn: 340438
llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp
llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h