Support emitting .cfi_undefined in CodeGen
authorScott Linder <Scott.Linder@amd.com>
Tue, 25 Feb 2020 14:03:11 +0000 (09:03 -0500)
committerScott Linder <Scott.Linder@amd.com>
Tue, 25 Feb 2020 19:00:01 +0000 (14:00 -0500)
This will be used by AMDGPU.

Differential Revision: https://reviews.llvm.org/D74914

llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp

index bd514e4..2a8ab09 100644 (file)
@@ -245,6 +245,9 @@ void AsmPrinter::emitCFIInstruction(const MCCFIInstruction &Inst) const {
   case MCCFIInstruction::OpRestore:
     OutStreamer->emitCFIRestore(Inst.getRegister());
     break;
+  case MCCFIInstruction::OpUndefined:
+    OutStreamer->emitCFIUndefined(Inst.getRegister());
+    break;
   }
 }