Remove some dead code. This method only gets called on
authorChris Lattner <sabre@nondot.org>
Fri, 12 Mar 2010 19:14:18 +0000 (19:14 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 12 Mar 2010 19:14:18 +0000 (19:14 +0000)
definitions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98368 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp

index 025d843f4d9246ff1aa204b722824fc3ef3f914b..5c5512018dd9bed3397ad78f65536c32b9880c6f 100644 (file)
@@ -63,11 +63,6 @@ MCSymbol *X86AsmPrinter::GetGlobalValueSymbol(const GlobalValue *GV) const {
     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;
 }