summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2018-08-22 18:53:48 +0000
committerHeejin Ahn <aheejin@gmail.com>2018-08-22 18:53:48 +0000
commitbc6d8970bb6ec44e1a0c8015a803fa382953dfa4 (patch)
tree834bab4054620e1abeea0c7223dfb703815105d9 /llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h
parenta2133f1a681dbcfce14d705252c75eb741c0d7ec (diff)
downloadbcm5719-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.h5
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
OpenPOWER on IntegriCloud