Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
lib/Target/ARM/ARMMCInstLower.cpp
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | bool ARMAsmPrinter::lowerOperand(const MachineOperand &MO, | ||||
case MachineOperand::MO_ExternalSymbol: | case MachineOperand::MO_ExternalSymbol: | ||||
MCOp = GetSymbolRef(MO, | MCOp = GetSymbolRef(MO, | ||||
GetExternalSymbolSymbol(MO.getSymbolName())); | GetExternalSymbolSymbol(MO.getSymbolName())); | ||||
break; | break; | ||||
case MachineOperand::MO_JumpTableIndex: | case MachineOperand::MO_JumpTableIndex: | ||||
MCOp = GetSymbolRef(MO, GetJTISymbol(MO.getIndex())); | MCOp = GetSymbolRef(MO, GetJTISymbol(MO.getIndex())); | ||||
break; | break; | ||||
case MachineOperand::MO_ConstantPoolIndex: | case MachineOperand::MO_ConstantPoolIndex: | ||||
if (Subtarget->genExecuteOnly()) | |||||
llvm_unreachable("execute-only should not generate constant pools"); | |||||
MCOp = GetSymbolRef(MO, GetCPISymbol(MO.getIndex())); | MCOp = GetSymbolRef(MO, GetCPISymbol(MO.getIndex())); | ||||
break; | break; | ||||
case MachineOperand::MO_BlockAddress: | case MachineOperand::MO_BlockAddress: | ||||
MCOp = GetSymbolRef(MO, GetBlockAddressSymbol(MO.getBlockAddress())); | MCOp = GetSymbolRef(MO, GetBlockAddressSymbol(MO.getBlockAddress())); | ||||
break; | break; | ||||
case MachineOperand::MO_FPImmediate: { | case MachineOperand::MO_FPImmediate: { | ||||
APFloat Val = MO.getFPImm()->getValueAPF(); | APFloat Val = MO.getFPImm()->getValueAPF(); | ||||
bool ignored; | bool ignored; | ||||
▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines |