mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
Minor bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40535 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
559742c0ea
commit
cf5543c47e
@ -628,19 +628,19 @@ bool X86DAGToDAGISel::MatchAddress(SDOperand N, X86ISelAddressMode &AM,
|
|||||||
AM.CP = CP->getConstVal();
|
AM.CP = CP->getConstVal();
|
||||||
AM.Align = CP->getAlignment();
|
AM.Align = CP->getAlignment();
|
||||||
AM.Disp += CP->getOffset();
|
AM.Disp += CP->getOffset();
|
||||||
AM.isRIPRel = !isStatic;
|
AM.isRIPRel = !isAbs32;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (ExternalSymbolSDNode *S =dyn_cast<ExternalSymbolSDNode>(N0)) {
|
} else if (ExternalSymbolSDNode *S =dyn_cast<ExternalSymbolSDNode>(N0)) {
|
||||||
if (isAbs32 || isRoot) {
|
if (isAbs32 || isRoot) {
|
||||||
AM.ES = S->getSymbol();
|
AM.ES = S->getSymbol();
|
||||||
AM.isRIPRel = !isStatic;
|
AM.isRIPRel = !isAbs32;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (JumpTableSDNode *J = dyn_cast<JumpTableSDNode>(N0)) {
|
} else if (JumpTableSDNode *J = dyn_cast<JumpTableSDNode>(N0)) {
|
||||||
if (isAbs32 || isRoot) {
|
if (isAbs32 || isRoot) {
|
||||||
AM.JT = J->getIndex();
|
AM.JT = J->getIndex();
|
||||||
AM.isRIPRel = !isStatic;
|
AM.isRIPRel = !isAbs32;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user