From 0125d5056999ca4a428251ef2ced5bad34d1133b Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 6 May 2011 15:31:55 +0000 Subject: [PATCH] Yet more dead code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130988 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/AsmPrinter.h | 4 ---- lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp | 13 ------------- 2 files changed, 17 deletions(-) diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h index f881cf7423a..336166a3fc9 100644 --- a/include/llvm/CodeGen/AsmPrinter.h +++ b/include/llvm/CodeGen/AsmPrinter.h @@ -400,10 +400,6 @@ namespace llvm { /// frame. void EmitCFIFrameMove(const MachineMove &Move) const; - /// EmitCFIFrameMoves - Emit frame instructions to describe the layout of - /// the frame. - void EmitCFIFrameMoves(const std::vector &Moves) const; - //===------------------------------------------------------------------===// // Inline Asm Support //===------------------------------------------------------------------===// diff --git a/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp b/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp index a94c0c1250f..482d4390687 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp @@ -232,16 +232,3 @@ void AsmPrinter::EmitCFIFrameMove(const MachineMove &Move) const { Dst.getOffset()); } } - -/// EmitCFIFrameMoves - Emit frame instructions to describe the layout of the -/// frame. -void AsmPrinter::EmitCFIFrameMoves(const std::vector &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); - } -}