Skip to content

Commit

Permalink
Merge pull request eclipse-omr#7098 from mstoodle/miscFixes
Browse files Browse the repository at this point in the history
Misc fixes
  • Loading branch information
0xdaryl authored Aug 24, 2023
2 parents 2148df2 + 0ab1886 commit 9659cbc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler/ilgen/OMRIlBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2022,6 +2022,7 @@ OMR::IlBuilder::ComputedCall(const char *functionName, int32_t numArgs, ...)
TR_ASSERT_FATAL(resolvedMethod, "Could not identify function %s\n", functionName);

TR::SymbolReference *methodSymRef = symRefTab()->findOrCreateComputedStaticMethodSymbol(JITTED_METHOD_INDEX, -1, resolvedMethod);
methodSymRef->getSymbol()->getMethodSymbol()->setLinkage(TR_System);
return genCall(methodSymRef, numArgs, argValues, false /*isDirectCall*/);
}

Expand All @@ -2041,6 +2042,7 @@ OMR::IlBuilder::ComputedCall(const char *functionName, int32_t numArgs, TR::IlVa
TR_ASSERT_FATAL(resolvedMethod, "Could not identify function %s\n", functionName);

TR::SymbolReference *methodSymRef = symRefTab()->findOrCreateComputedStaticMethodSymbol(JITTED_METHOD_INDEX, -1, resolvedMethod);
methodSymRef->getSymbol()->getMethodSymbol()->setLinkage(TR_System);
return genCall(methodSymRef, numArgs, argValues, false /*isDirectCall*/);
}

Expand Down Expand Up @@ -2143,6 +2145,7 @@ OMR::IlBuilder::Call(const char *functionName, int32_t numArgs, ...)
TR_ASSERT_FATAL(resolvedMethod, "Could not identify function %s\n", functionName);

TR::SymbolReference *methodSymRef = symRefTab()->findOrCreateStaticMethodSymbol(JITTED_METHOD_INDEX, -1, resolvedMethod);
methodSymRef->getSymbol()->getMethodSymbol()->setLinkage(TR_System);
return genCall(methodSymRef, numArgs, argValues);
}

Expand All @@ -2156,6 +2159,7 @@ OMR::IlBuilder::Call(const char *functionName, int32_t numArgs, TR::IlValue ** a
TR_ASSERT_FATAL(resolvedMethod, "Could not identify function %s\n", functionName);

TR::SymbolReference *methodSymRef = symRefTab()->findOrCreateStaticMethodSymbol(JITTED_METHOD_INDEX, -1, resolvedMethod);
methodSymRef->getSymbol()->getMethodSymbol()->setLinkage(TR_System);
return genCall(methodSymRef, numArgs, argValues);
}

Expand Down
3 changes: 3 additions & 0 deletions fvtest/tril/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
project(tril_project)

set(OMR_WARNINGS_AS_ERRORS OFF)
if(NOT OMR_TEST_COMPILER)
message(FATAL_ERROR "tril requries -DOMR_TEST_COMPILER=1")
endif(NOT OMR_TEST_COMPILER)

add_subdirectory(tril)
add_subdirectory(test)
Expand Down

0 comments on commit 9659cbc

Please sign in to comment.