diff options
author | Heejin Ahn <aheejin@gmail.com> | 2018-08-22 18:53:48 +0000 |
---|---|---|
committer | Heejin Ahn <aheejin@gmail.com> | 2018-08-22 18:53:48 +0000 |
commit | bc6d8970bb6ec44e1a0c8015a803fa382953dfa4 (patch) | |
tree | 834bab4054620e1abeea0c7223dfb703815105d9 /llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h | |
parent | a2133f1a681dbcfce14d705252c75eb741c0d7ec (diff) | |
download | bcm5719-llvm-bc6d8970bb6ec44e1a0c8015a803fa382953dfa4.tar.gz bcm5719-llvm-bc6d8970bb6ec44e1a0c8015a803fa382953dfa4.zip |
[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
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h b/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h index 5e744ad498b..ac25b7b37fd 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h +++ b/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h @@ -56,9 +56,8 @@ class WebAssemblyFrameLowering final : public TargetFrameLowering { private: bool hasBP(const MachineFunction &MF) const; - bool needsSP(const MachineFunction &MF, const MachineFrameInfo &MFI) const; - bool needsSPWriteback(const MachineFunction &MF, - const MachineFrameInfo &MFI) const; + bool needsSP(const MachineFunction &MF) const; + bool needsSPWriteback(const MachineFunction &MF) const; }; } // end namespace llvm |