llvm.org GIT mirror llvm / 79b765d
Use X86II::MO_NO_FLAG. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80012 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 11 years ago
1 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
7878
7979 X86ISelAddressMode()
8080 : BaseType(RegBase), Scale(1), IndexReg(), Disp(0),
81 Segment(), GV(0), CP(0), ES(0), JT(-1), Align(0), SymbolFlags(0) {
81 Segment(), GV(0), CP(0), ES(0), JT(-1), Align(0),
82 SymbolFlags(X86II::MO_NO_FLAG) {
8283 }
8384
8485 bool hasSymbolicDisplacement() const {
820821 AM.BaseType == X86ISelAddressMode::RegBase &&
821822 AM.Base.Reg.getNode() == 0 &&
822823 AM.IndexReg.getNode() == 0 &&
823 AM.SymbolFlags == 0 &&
824 AM.SymbolFlags == X86II::MO_NO_FLAG &&
824825 AM.hasSymbolicDisplacement())
825826 AM.Base.Reg = CurDAG->getRegister(X86::RIP, MVT::i64);
826827