mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-05 11:57:07 +00:00
Use X86II::MO_NO_FLAG.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80012 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2a9df47abd
commit
79b765d057
@ -79,7 +79,8 @@ namespace {
|
|||||||
|
|
||||||
X86ISelAddressMode()
|
X86ISelAddressMode()
|
||||||
: BaseType(RegBase), Scale(1), IndexReg(), Disp(0),
|
: BaseType(RegBase), Scale(1), IndexReg(), Disp(0),
|
||||||
Segment(), GV(0), CP(0), ES(0), JT(-1), Align(0), SymbolFlags(0) {
|
Segment(), GV(0), CP(0), ES(0), JT(-1), Align(0),
|
||||||
|
SymbolFlags(X86II::MO_NO_FLAG) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool hasSymbolicDisplacement() const {
|
bool hasSymbolicDisplacement() const {
|
||||||
@ -821,7 +822,7 @@ bool X86DAGToDAGISel::MatchAddress(SDValue N, X86ISelAddressMode &AM) {
|
|||||||
AM.BaseType == X86ISelAddressMode::RegBase &&
|
AM.BaseType == X86ISelAddressMode::RegBase &&
|
||||||
AM.Base.Reg.getNode() == 0 &&
|
AM.Base.Reg.getNode() == 0 &&
|
||||||
AM.IndexReg.getNode() == 0 &&
|
AM.IndexReg.getNode() == 0 &&
|
||||||
AM.SymbolFlags == 0 &&
|
AM.SymbolFlags == X86II::MO_NO_FLAG &&
|
||||||
AM.hasSymbolicDisplacement())
|
AM.hasSymbolicDisplacement())
|
||||||
AM.Base.Reg = CurDAG->getRegister(X86::RIP, MVT::i64);
|
AM.Base.Reg = CurDAG->getRegister(X86::RIP, MVT::i64);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user