[llvm-commits] [llvm] r131760 - in /llvm/trunk/lib: CodeGen/AsmPrinter/AsmPrinterDwarf.cpp MC/MCDwarf.cpp
Jim Grosbach
grosbach at apple.com
Fri May 20 14:50:10 PDT 2011
Author: grosbach
Date: Fri May 20 16:50:09 2011
New Revision: 131760
URL: http://llvm.org/viewvc/llvm-project?rev=131760&view=rev
Log:
No reason not to allow defining the CFA as a reg w/ offset zero.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
llvm/trunk/lib/MC/MCDwarf.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp?rev=131760&r1=131759&r2=131760&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp Fri May 20 16:50:09 2011
@@ -215,8 +215,6 @@
// If advancing cfa.
if (Dst.isReg() && Dst.getReg() == MachineLocation::VirtualFP) {
- assert(!Src.isReg() && "Machine move not supported yet.");
-
if (Src.getReg() == MachineLocation::VirtualFP) {
OutStreamer.EmitCFIDefCfaOffset(-Src.getOffset());
} else {
Modified: llvm/trunk/lib/MC/MCDwarf.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCDwarf.cpp?rev=131760&r1=131759&r2=131760&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCDwarf.cpp (original)
+++ llvm/trunk/lib/MC/MCDwarf.cpp Fri May 20 16:50:09 2011
@@ -539,8 +539,6 @@
// If advancing cfa.
if (Dst.isReg() && Dst.getReg() == MachineLocation::VirtualFP) {
- assert(!Src.isReg() && "Machine move not supported yet.");
-
if (Src.getReg() == MachineLocation::VirtualFP) {
Streamer.EmitIntValue(dwarf::DW_CFA_def_cfa_offset, 1);
} else {
More information about the llvm-commits
mailing list