Commit c5845efe authored by Junliang Yan's avatar Junliang Yan Committed by Commit Bot

PPC/s390: handle kExternalRef case

R=joransiu@ca.ibm.com

Change-Id: Iace9b8bf40d416b2c7c56c383d00b4f0a6501de1
Reviewed-on: https://chromium-review.googlesource.com/1236973Reviewed-by: 's avatarMuntasir Mallick <mmallick@ca.ibm.com>
Commit-Queue: Junliang Yan <jyan@ca.ibm.com>
Cr-Commit-Position: refs/heads/master@{#56103}
parent 261cd2f5
...@@ -74,6 +74,7 @@ class PPCOperandConverter final : public InstructionOperandConverter { ...@@ -74,6 +74,7 @@ class PPCOperandConverter final : public InstructionOperandConverter {
return Operand(constant.ToInt64()); return Operand(constant.ToInt64());
#endif #endif
case Constant::kExternalReference: case Constant::kExternalReference:
return Operand(constant.ToExternalReference());
case Constant::kDelayedStringConstant: case Constant::kDelayedStringConstant:
return Operand::EmbeddedStringConstant( return Operand::EmbeddedStringConstant(
constant.ToDelayedStringConstant()); constant.ToDelayedStringConstant());
......
...@@ -67,6 +67,7 @@ class S390OperandConverter final : public InstructionOperandConverter { ...@@ -67,6 +67,7 @@ class S390OperandConverter final : public InstructionOperandConverter {
return Operand(constant.ToInt64()); return Operand(constant.ToInt64());
#endif #endif
case Constant::kExternalReference: case Constant::kExternalReference:
return Operand(constant.ToExternalReference());
case Constant::kDelayedStringConstant: case Constant::kDelayedStringConstant:
return Operand::EmbeddedStringConstant( return Operand::EmbeddedStringConstant(
constant.ToDelayedStringConstant()); constant.ToDelayedStringConstant());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment