[llvm-commits] [llvm] r76009 - /llvm/trunk/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp
Anton Korobeynikov
asl at math.spbu.ru
Thu Jul 16 07:17:08 PDT 2009
Author: asl
Date: Thu Jul 16 09:17:07 2009
New Revision: 76009
URL: http://llvm.org/viewvc/llvm-project?rev=76009&view=rev
Log:
Add missed operands types
Modified:
llvm/trunk/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp?rev=76009&r1=76008&r2=76009&view=diff
==============================================================================
--- llvm/trunk/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp Thu Jul 16 09:17:07 2009
@@ -190,6 +190,12 @@
void SystemZAsmPrinter::printPCRelImmOperand(const MachineInstr *MI, int OpNum) {
const MachineOperand &MO = MI->getOperand(OpNum);
switch (MO.getType()) {
+ case MachineOperand::MO_Immediate:
+ O << MO.getImm();
+ return;
+ case MachineOperand::MO_MachineBasicBlock:
+ printBasicBlockLabel(MO.getMBB(), false, false, VerboseAsm);
+ return;
case MachineOperand::MO_GlobalAddress: {
const GlobalValue *GV = MO.getGlobal();
std::string Name = Mang->getValueName(GV);
More information about the llvm-commits
mailing list