[llvm-commits] [llvm] r130988 - in /llvm/trunk: include/llvm/CodeGen/AsmPrinter.h lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp

Rafael Espindola rafael.espindola at gmail.com
Fri May 6 08:31:55 PDT 2011


Author: rafael
Date: Fri May  6 10:31:55 2011
New Revision: 130988

URL: http://llvm.org/viewvc/llvm-project?rev=130988&view=rev
Log:
Yet more dead code.

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

Modified: llvm/trunk/include/llvm/CodeGen/AsmPrinter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/AsmPrinter.h?rev=130988&r1=130987&r2=130988&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/AsmPrinter.h (original)
+++ llvm/trunk/include/llvm/CodeGen/AsmPrinter.h Fri May  6 10:31:55 2011
@@ -400,10 +400,6 @@
     /// frame.
     void EmitCFIFrameMove(const MachineMove &Move) const;
 
-    /// EmitCFIFrameMoves - Emit frame instructions to describe the layout of
-    /// the frame.
-    void EmitCFIFrameMoves(const std::vector<MachineMove> &Moves) const;
-
     //===------------------------------------------------------------------===//
     // Inline Asm Support
     //===------------------------------------------------------------------===//

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp?rev=130988&r1=130987&r2=130988&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp Fri May  6 10:31:55 2011
@@ -232,16 +232,3 @@
                               Dst.getOffset());
   }
 }
-
-/// EmitCFIFrameMoves - Emit frame instructions to describe the layout of the
-/// frame.
-void AsmPrinter::EmitCFIFrameMoves(const std::vector<MachineMove> &Moves) const {
-  for (unsigned i = 0, N = Moves.size(); i < N; ++i) {
-    const MachineMove &Move = Moves[i];
-    MCSymbol *Label = Move.getLabel();
-    // Throw out move if the label is invalid.
-    if (Label && !Label->isDefined()) continue; // Not emitted, in dead code.
-
-    EmitCFIFrameMove(Move);
-  }
-}





More information about the llvm-commits mailing list