@@ -33,7 +33,7 @@ TYPED_TEST(CPPINTEROP_TEST_MODE, DynamicLibraryManager_Sanity) {
3333 GTEST_SKIP () << " Test fails for OOP JIT builds" ;
3434
3535 EXPECT_TRUE (TestFixture::CreateInterpreter ());
36- EXPECT_FALSE (Cpp::GetFunctionAddress (" ret_zero" ));
36+ EXPECT_FALSE (Cpp::GetFunctionAddressFromMangledName (" ret_zero" ));
3737
3838 std::string BinaryPath = GetExecutablePath (/* Argv0=*/ nullptr );
3939 llvm::StringRef Dir = llvm::sys::path::parent_path (BinaryPath);
@@ -59,14 +59,14 @@ TYPED_TEST(CPPINTEROP_TEST_MODE, DynamicLibraryManager_Sanity) {
5959 Cpp::Process (" " );
6060 // FIXME: Conda returns false to run this code on osx.
6161#ifndef __APPLE__
62- EXPECT_TRUE (Cpp::GetFunctionAddress (" ret_zero" ));
62+ EXPECT_TRUE (Cpp::GetFunctionAddressFromMangledName (" ret_zero" ));
6363#endif // __APPLE__
6464
6565 Cpp::UnloadLibrary (" TestSharedLib" );
6666 // We have no reliable way to check if it was unloaded because posix does not
6767 // require the library to be actually unloaded but just the handle to be
6868 // invalidated...
69- // EXPECT_FALSE(Cpp::GetFunctionAddress ("ret_zero"));
69+ // EXPECT_FALSE(Cpp::GetFunctionAddressFromMangledName ("ret_zero"));
7070}
7171
7272TYPED_TEST (CPPINTEROP_TEST_MODE, DynamicLibraryManager_BasicSymbolLookup) {
@@ -81,15 +81,15 @@ TYPED_TEST(CPPINTEROP_TEST_MODE, DynamicLibraryManager_BasicSymbolLookup) {
8181 GTEST_SKIP () << " Test fails for OOP JIT builds" ;
8282
8383 ASSERT_TRUE (TestFixture::CreateInterpreter ());
84- EXPECT_FALSE (Cpp::GetFunctionAddress (" ret_zero" ));
84+ EXPECT_FALSE (Cpp::GetFunctionAddressFromMangledName (" ret_zero" ));
8585
8686 // Load the library manually. Use known preload path (MEMFS path)
8787 const char * wasmLibPath = " libTestSharedLib.so" ; // Preloaded path in MEMFS
8888 EXPECT_TRUE (Cpp::LoadLibrary (wasmLibPath, false ));
8989
9090 Cpp::Process (" " );
9191
92- void * Addr = Cpp::GetFunctionAddress (" ret_zero" );
92+ void * Addr = Cpp::GetFunctionAddressFromMangledName (" ret_zero" );
9393 EXPECT_NE (Addr, nullptr ) << " Symbol 'ret_zero' not found after dlopen." ;
9494
9595 using RetZeroFn = int (*)();
0 commit comments