if (Op.isImm())
O << Op.getImm();
+ else if (Op.isMCValue())
+ Op.getMCValue().print(O);
else if (Op.isMBBLabel())
// FIXME: Keep in sync with printBasicBlockLabel. printBasicBlockLabel
// should eventually call into this code, not the other way around.
O << '$';
O << Op.getImm();
return;
+ } else if (Op.isMCValue()) {
+ O << '$';
+ Op.getMCValue().print(O);
+ return;
}
O << "<<UNKNOWN OPERAND KIND>>";
int64_t DispVal = DispSpec.getImm();
if (DispVal || (!IndexReg.getReg() && !BaseReg.getReg()))
O << DispVal;
+ } else if (DispSpec.isMCValue()) {
+ DispSpec.getMCValue().print(O);
} else {
llvm_unreachable("non-immediate displacement for LEA?");
//assert(DispSpec.isGlobal() || DispSpec.isCPI() ||