From 1c95488880d764cbe34bc8a5f8fe240fc1260cf4 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 12 Mar 2010 19:14:18 +0000 Subject: [PATCH] Remove some dead code. This method only gets called on definitions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98368 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp b/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp index 025d843f4d9..5c5512018dd 100644 --- a/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp +++ b/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp @@ -63,11 +63,6 @@ MCSymbol *X86AsmPrinter::GetGlobalValueSymbol(const GlobalValue *GV) const { MMI->getObjFileInfo(); COFFMMI.DecorateCygMingName(Symb, OutContext, GV, *TM.getTargetData()); - // Save function name for later type emission. - const Function *F = cast(GV); - if (F->isDeclaration()) - COFFMMI.addExternalFunction(Symb->getName()); - return Symb; } -- 2.34.1