[llvm] 915b4aa - Support emitting .cfi_undefined in CodeGen

Scott Linder via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 25 11:01:26 PST 2020


Author: Scott Linder
Date: 2020-02-25T14:00:01-05:00
New Revision: 915b4aa1392fc865de9139696780ad5107f6cdc8

URL: https://github.com/llvm/llvm-project/commit/915b4aa1392fc865de9139696780ad5107f6cdc8
DIFF: https://github.com/llvm/llvm-project/commit/915b4aa1392fc865de9139696780ad5107f6cdc8.diff

LOG: Support emitting .cfi_undefined in CodeGen

This will be used by AMDGPU.

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

Added: 
    

Modified: 
    llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
index bd514e415dd5..2a8ab091bf9a 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
@@ -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;
   }
 }
 


        


More information about the llvm-commits mailing list