[llvm] r256163 - Teach MCOperand::print how to print FPImm operands.
    Dan Gohman via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Dec 21 08:47:10 PST 2015
    
    
  
Author: djg
Date: Mon Dec 21 10:47:10 2015
New Revision: 256163
URL: http://llvm.org/viewvc/llvm-project?rev=256163&view=rev
Log:
Teach MCOperand::print how to print FPImm operands.
Modified:
    llvm/trunk/lib/MC/MCInst.cpp
Modified: llvm/trunk/lib/MC/MCInst.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCInst.cpp?rev=256163&r1=256162&r2=256163&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCInst.cpp (original)
+++ llvm/trunk/lib/MC/MCInst.cpp Mon Dec 21 10:47:10 2015
@@ -23,6 +23,8 @@ void MCOperand::print(raw_ostream &OS) c
     OS << "Reg:" << getReg();
   else if (isImm())
     OS << "Imm:" << getImm();
+  else if (isFPImm())
+    OS << "FPImm:" << getFPImm();
   else if (isExpr()) {
     OS << "Expr:(" << *getExpr() << ")";
   } else if (isInst()) {
    
    
More information about the llvm-commits
mailing list