[llvm-commits] [llvm] r131756 - /llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp

Jim Grosbach grosbach at apple.com
Fri May 20 14:23:17 PDT 2011


Author: grosbach
Date: Fri May 20 16:23:17 2011
New Revision: 131756

URL: http://llvm.org/viewvc/llvm-project?rev=131756&view=rev
Log:
Add support for frame info use of the .cfi_def_cfa directive.

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

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp?rev=131756&r1=131755&r2=131756&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp Fri May 20 16:23:17 2011
@@ -220,8 +220,9 @@
     if (Src.getReg() == MachineLocation::VirtualFP) {
       OutStreamer.EmitCFIDefCfaOffset(-Src.getOffset());
     } else {
-      assert("Machine move not supported yet");
       // Reg + Offset
+      OutStreamer.EmitCFIDefCfa(RI->getDwarfRegNum(Src.getReg(), true),
+                                Src.getOffset());
     }
   } else if (Src.isReg() && Src.getReg() == MachineLocation::VirtualFP) {
     assert(Dst.isReg() && "Machine move not supported yet.");





More information about the llvm-commits mailing list