aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2018-08-22 00:20:02 +0000
committerHeejin Ahn <aheejin@gmail.com>2018-08-22 00:20:02 +0000
commitc4df1d182c13c0665868e39aa7ee1e967368db40 (patch)
tree7aa17cf0ddcefa85c2d8ed5da0aaa0b3d027273b /llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp
parent1e8a2c963c804770bb58fbbd0103da2a86217c15 (diff)
downloadllvm-c4df1d182c13c0665868e39aa7ee1e967368db40.zip
llvm-c4df1d182c13c0665868e39aa7ee1e967368db40.tar.gz
llvm-c4df1d182c13c0665868e39aa7ee1e967368db40.tar.bz2
[WebAssembly] Change comments on SP writing back (NFC)
Summary: We now write back not to memory but to __stack_pointer global. Reviewers: dschuff Subscribers: sbc100, jgravelle-google, sunfish, llvm-commits Differential Revision: https://reviews.llvm.org/D51074 llvm-svn: 340372
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp
index 9e33ed7..8b156ec 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp
@@ -99,8 +99,9 @@ bool WebAssemblyFrameLowering::needsSP(const MachineFunction &MF,
}
/// Returns true if the local user-space stack pointer needs to be written back
-/// to memory by this function (this is not meaningful if needsSP is false). If
-/// false, the stack red zone can be used and only a local SP is needed.
+/// to __stack_pointer global by this function (this is not meaningful if
+/// needsSP is false). If false, the stack red zone can be used and only a local
+/// SP is needed.
bool WebAssemblyFrameLowering::needsSPWriteback(
const MachineFunction &MF, const MachineFrameInfo &MFI) const {
assert(needsSP(MF, MFI));