summaryrefslogtreecommitdiff
path: root/src/passes/SpillPointers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/SpillPointers.cpp')
-rw-r--r--src/passes/SpillPointers.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/passes/SpillPointers.cpp b/src/passes/SpillPointers.cpp
index 492a90501..d65c89d3e 100644
--- a/src/passes/SpillPointers.cpp
+++ b/src/passes/SpillPointers.cpp
@@ -83,7 +83,7 @@ struct SpillPointers : public WalkerPass<LivenessWalker<SpillPointers, Visitor<S
PointerMap pointerMap;
for (Index i = 0; i < func->getNumLocals(); i++) {
if (func->getLocalType(i) == ABI::PointerType) {
- auto offset = pointerMap.size() * getWasmTypeSize(ABI::PointerType);
+ auto offset = pointerMap.size() * getTypeSize(ABI::PointerType);
pointerMap[i] = offset;
}
}
@@ -136,7 +136,7 @@ struct SpillPointers : public WalkerPass<LivenessWalker<SpillPointers, Visitor<S
}
if (spilled) {
// get the stack space, and set the local to it
- ABI::getStackSpace(spillLocal, func, getWasmTypeSize(ABI::PointerType) * pointerMap.size(), *getModule());
+ ABI::getStackSpace(spillLocal, func, getTypeSize(ABI::PointerType) * pointerMap.size(), *getModule());
}
}
@@ -176,9 +176,9 @@ struct SpillPointers : public WalkerPass<LivenessWalker<SpillPointers, Visitor<S
// add the spills
for (auto index : toSpill) {
block->list.push_back(builder.makeStore(
- getWasmTypeSize(ABI::PointerType),
+ getTypeSize(ABI::PointerType),
pointerMap[index],
- getWasmTypeSize(ABI::PointerType),
+ getTypeSize(ABI::PointerType),
builder.makeGetLocal(spillLocal, ABI::PointerType),
builder.makeGetLocal(index, ABI::PointerType),
ABI::PointerType