MIR Serialization: Serialize the '.cfi_same_value' CFI directive.
[oota-llvm.git] / lib / CodeGen / MIRPrinter.cpp
index d70b5c412f167cde8da294344e1076069087f84f..248db52790e93bc53764785381fead939f6d765b 100644 (file)
@@ -794,6 +794,12 @@ static void printCFIRegister(unsigned DwarfReg, raw_ostream &OS,
 void MIPrinter::print(const MCCFIInstruction &CFI,
                       const TargetRegisterInfo *TRI) {
   switch (CFI.getOperation()) {
+  case MCCFIInstruction::OpSameValue:
+    OS << ".cfi_same_value ";
+    if (CFI.getLabel())
+      OS << "<mcsymbol> ";
+    printCFIRegister(CFI.getRegister(), OS, TRI);
+    break;
   case MCCFIInstruction::OpOffset:
     OS << ".cfi_offset ";
     if (CFI.getLabel())