mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
minor cleanup/framework changes.
llvm-svn: 74316
This commit is contained in:
parent
333c8af1b1
commit
a56bff5e36
@ -486,8 +486,10 @@ void X86ATTAsmPrinter::printOperand(const MachineInstr *MI, unsigned OpNo,
|
||||
O << TAI->getPrivateGlobalPrefix() << "CPI" << getFunctionNumber() << '_'
|
||||
<< MO.getIndex();
|
||||
|
||||
printOffset(MO.getOffset());
|
||||
|
||||
switch (MO.getTargetFlags()) {
|
||||
default:
|
||||
default:
|
||||
assert(0 && "Unknown target flag on constant pool operand");
|
||||
case X86II::MO_NO_FLAG:
|
||||
// FIXME: REMOVE EVENTUALLY.
|
||||
@ -506,8 +508,6 @@ void X86ATTAsmPrinter::printOperand(const MachineInstr *MI, unsigned OpNo,
|
||||
O << "@GOTOFF";
|
||||
break;
|
||||
}
|
||||
|
||||
printOffset(MO.getOffset());
|
||||
|
||||
if (isMemOp && Subtarget->isPICStyleRIPRel() && !NotRIPRel)
|
||||
O << "(%rip)";
|
||||
@ -580,6 +580,14 @@ void X86ATTAsmPrinter::printOperand(const MachineInstr *MI, unsigned OpNo,
|
||||
if (needCloseParen)
|
||||
O << ')';
|
||||
|
||||
switch (MO.getTargetFlags()) {
|
||||
default:
|
||||
assert(0 && "Unknown target flag on GV operand");
|
||||
case X86II::MO_NO_FLAG:
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
bool isRIPRelative = false;
|
||||
if (isThreadLocal) {
|
||||
TLSModel::Model model = getTLSModel(GVar, TM.getRelocationModel());
|
||||
|
Loading…
Reference in New Issue
Block a user