diff options
| author | Sean Fertile <sfertile@ca.ibm.com> | 2019-07-26 17:25:27 +0000 |
|---|---|---|
| committer | Sean Fertile <sfertile@ca.ibm.com> | 2019-07-26 17:25:27 +0000 |
| commit | 9df6177d380ecd0e9d78361a938664dc3a0ee387 (patch) | |
| tree | eaa8f72dd02b30c81d5de2cd69be266f8400ea55 /llvm/lib/Target/PowerPC | |
| parent | be4a78af465aca8030d044e56990fc0498e2d6c2 (diff) | |
| download | bcm5719-llvm-9df6177d380ecd0e9d78361a938664dc3a0ee387.tar.gz bcm5719-llvm-9df6177d380ecd0e9d78361a938664dc3a0ee387.zip | |
[PowerPC][AIX]Add lowering of MCSymbol MachineOperand.
Adds machine operand lowering for MCSymbolSDNodes to the PowerPC
backend. This is needed to produce call instructions in assembly for AIX
because the callee operand is a MCSymbolSDNode. The test is XFAIL'ed for
asserts due to a (valid) assertion in PEI that the AIX ABI isn't supported yet.
Differential Revision: https://reviews.llvm.org/D63738
llvm-svn: 367133
Diffstat (limited to 'llvm/lib/Target/PowerPC')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCMCInstLower.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCMCInstLower.cpp b/llvm/lib/Target/PowerPC/PPCMCInstLower.cpp index 027e6bd1ba0..32b9818e70b 100644 --- a/llvm/lib/Target/PowerPC/PPCMCInstLower.cpp +++ b/llvm/lib/Target/PowerPC/PPCMCInstLower.cpp @@ -193,6 +193,9 @@ bool llvm::LowerPPCMachineOperandToMCOperand(const MachineOperand &MO, OutMO = GetSymbolRef(MO, AP.GetBlockAddressSymbol(MO.getBlockAddress()), AP, isDarwin); return true; + case MachineOperand::MO_MCSymbol: + OutMO = GetSymbolRef(MO, MO.getMCSymbol(), AP, isDarwin); + return true; case MachineOperand::MO_RegisterMask: return false; } |

