mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-05 17:39:16 +00:00
absolute addresses must match pointer size
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30461 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e85fb6719a
commit
3fbd67898e
@ -714,6 +714,7 @@ void AsmPrinter::printInlineAsm(const MachineInstr *MI) const {
|
||||
|
||||
if (OpNo >= MI->getNumOperands()) {
|
||||
Error = true;
|
||||
std::cerr << "Too many operands\n";
|
||||
} else {
|
||||
unsigned OpFlags = MI->getOperand(OpNo).getImmedValue();
|
||||
++OpNo; // Skip over the ID number.
|
||||
|
@ -866,7 +866,7 @@ void SelectionDAGLowering::visitJumpTable(SelectionDAGISel::JumpTable &JT) {
|
||||
DAG.getConstant(EntrySize, PTy));
|
||||
SDOperand TAB = DAG.getJumpTable(JT.JTI,PTy);
|
||||
SDOperand ADD = DAG.getNode(ISD::ADD, PTy, IDX, TAB);
|
||||
SDOperand LD = DAG.getLoad(MVT::i32, Copy.getValue(1), ADD,
|
||||
SDOperand LD = DAG.getLoad(PTy, Copy.getValue(1), ADD,
|
||||
DAG.getSrcValue(0));
|
||||
if (TLI.getTargetMachine().getRelocationModel() == Reloc::PIC_) {
|
||||
ADD = DAG.getNode(ISD::ADD, PTy,
|
||||
|
Loading…
x
Reference in New Issue
Block a user