Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSX: Enable x86_64 linkage creation in CodeGenerator #2983

Merged
merged 1 commit into from
Sep 25, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions runtime/compiler/x/amd64/codegen/J9CodeGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ J9::X86::AMD64::CodeGenerator::createLinkage(TR_LinkageConventions lc)
systemLinkage = new (self()->trHeapMemory()) TR::AMD64J9Win64FastCallLinkage(self());
linkage = new (self()->trHeapMemory()) TR::AMD64JNILinkage(systemLinkage, self());
}
else if (TR::Compiler->target.isLinux())
else if (TR::Compiler->target.isLinux() || TR::Compiler->target.isOSX())
{
systemLinkage = new (self()->trHeapMemory()) TR::AMD64J9ABILinkage(self());
linkage = new (self()->trHeapMemory()) TR::AMD64JNILinkage(systemLinkage, self());
Expand All @@ -84,7 +84,7 @@ J9::X86::AMD64::CodeGenerator::createLinkage(TR_LinkageConventions lc)
{
linkage = new (self()->trHeapMemory()) TR::AMD64J9Win64FastCallLinkage(self());
}
else if (TR::Compiler->target.isLinux())
else if (TR::Compiler->target.isLinux() || TR::Compiler->target.isOSX())
{
linkage = new (self()->trHeapMemory()) TR::AMD64J9ABILinkage(self());
}
Expand Down