[llvm-commits] [llvm] r74316 - /llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
Chris Lattner
sabre at nondot.org
Fri Jun 26 13:00:05 PDT 2009
Author: lattner
Date: Fri Jun 26 15:00:05 2009
New Revision: 74316
URL: http://llvm.org/viewvc/llvm-project?rev=74316&view=rev
Log:
minor cleanup/framework changes.
Modified:
llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp?rev=74316&r1=74315&r2=74316&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp Fri Jun 26 15:00:05 2009
@@ -486,8 +486,10 @@
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 @@
O << "@GOTOFF";
break;
}
-
- printOffset(MO.getOffset());
if (isMemOp && Subtarget->isPICStyleRIPRel() && !NotRIPRel)
O << "(%rip)";
@@ -580,6 +580,14 @@
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());
More information about the llvm-commits
mailing list