[llvm-commits] [llvm] r98368 - /llvm/trunk/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp

Chris Lattner sabre at nondot.org
Fri Mar 12 11:14:18 PST 2010


Author: lattner
Date: Fri Mar 12 13:14:18 2010
New Revision: 98368

URL: http://llvm.org/viewvc/llvm-project?rev=98368&view=rev
Log:
Remove some dead code.  This method only gets called on 
definitions.


Modified:
    llvm/trunk/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp

Modified: llvm/trunk/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp?rev=98368&r1=98367&r2=98368&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp Fri Mar 12 13:14:18 2010
@@ -63,11 +63,6 @@
     MMI->getObjFileInfo<X86COFFMachineModuleInfo>();
   COFFMMI.DecorateCygMingName(Symb, OutContext, GV, *TM.getTargetData());
 
-  // Save function name for later type emission.
-  const Function *F = cast<Function>(GV);
-  if (F->isDeclaration())
-    COFFMMI.addExternalFunction(Symb->getName());
-
   return Symb;
 }
 





More information about the llvm-commits mailing list