Skip to content

Commit ae2b1f2

Browse files
committed
WebAssemblyLowerEmscriptenEHSjLj.cpp: comment
1 parent 0c1acd8 commit ae2b1f2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

llvm/lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,9 @@ class WebAssemblyLowerEmscriptenEHSjLj final : public ModulePass {
318318
Function *ResumeF = nullptr; // __resumeException() (Emscripten)
319319
Function *EHTypeIDF = nullptr; // llvm.eh.typeid.for() (intrinsic)
320320
Function *EmLongjmpF = nullptr; // emscripten_longjmp() (Emscripten)
321-
Function *SaveSetjmpF = nullptr; // saveSetjmp() (Emscripten)
322-
Function *TestSetjmpF = nullptr; // testSetjmp() (Emscripten)
321+
Function *SaveSetjmpF = nullptr; // saveSetjmp()/__wasm_setjmp() (Emscripten)
322+
Function *TestSetjmpF =
323+
nullptr; // testSetjmp()/__wasm_setjmp_test() (Emscripten)
323324
Function *WasmLongjmpF = nullptr; // __wasm_longjmp() (Emscripten)
324325
Function *CatchF = nullptr; // wasm.catch() (intrinsic)
325326

@@ -1019,14 +1020,14 @@ bool WebAssemblyLowerEmscriptenEHSjLj::runOnModule(Module &M) {
10191020
Type *Int32Ty = IRB.getInt32Ty();
10201021

10211022
if (EnableWasmSjLj) {
1022-
// Register saveSetjmp function
1023+
// Register __wasm_setjmp function
10231024
FunctionType *SetjmpFTy = SetjmpF->getFunctionType();
10241025
FunctionType *FTy = FunctionType::get(
10251026
IRB.getVoidTy(), {SetjmpFTy->getParamType(0), Int32Ty, Int32PtrTy},
10261027
false);
10271028
SaveSetjmpF = getEmscriptenFunction(FTy, "__wasm_setjmp", &M);
10281029

1029-
// Register testSetjmp function
1030+
// Register __wasm_setjmp_test function
10301031
FTy = FunctionType::get(Int32Ty, {Int32PtrTy, Int32PtrTy}, false);
10311032
TestSetjmpF = getEmscriptenFunction(FTy, "__wasm_setjmp_test", &M);
10321033
} else {

0 commit comments

Comments
 (0)