mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 16:36:40 +00:00
add a missing else. This caused globals to be printed as:
movq ___dso_handle@GOTPCREL(%rip)(%rip), %rsi instead of: movq ___dso_handle@GOTPCREL(%rip), %rsi llvm-svn: 33196
This commit is contained in:
parent
b1b258fd1e
commit
716c76605c
@ -310,7 +310,7 @@ void X86ATTAsmPrinter::printOperand(const MachineInstr *MI, unsigned OpNo,
|
||||
O << "@GOT";
|
||||
} else if (Subtarget->isPICStyleRIPRel()) {
|
||||
O << "@GOTPCREL(%rip)";
|
||||
} if (Subtarget->is64Bit() && !NotRIPRel)
|
||||
} else if (Subtarget->is64Bit() && !NotRIPRel)
|
||||
// Use rip when possible to reduce code size, except when
|
||||
// index or base register are also part of the address. e.g.
|
||||
// foo(%rip)(%rcx,%rax,4) is not legal
|
||||
|
Loading…
Reference in New Issue
Block a user