From 61a95137c99b321f333f364dd5e649fceb34c346 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 16 Jan 2010 01:24:10 +0000 Subject: [PATCH] CurrentFnName is now dead, remove it. llvm-svn: 93612 --- include/llvm/CodeGen/AsmPrinter.h | 3 +-- lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h index d3df48ead2b..8c1acab3aa0 100644 --- a/include/llvm/CodeGen/AsmPrinter.h +++ b/include/llvm/CodeGen/AsmPrinter.h @@ -131,10 +131,9 @@ namespace llvm { /// Mangler *Mang; - /// Cache of mangled name for current function. This is recalculated at the + /// The symbol for the current function. This is recalculated at the /// beginning of each call to runOnMachineFunction(). /// - std::string CurrentFnName; // FIXME: REMOVE. const MCSymbol *CurrentFnSym; /// getCurrentSection() - Return the current section we are emitting to. diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 577d173ff13..dd25437a20f 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -231,8 +231,7 @@ bool AsmPrinter::doFinalization(Module &M) { } void AsmPrinter::SetupMachineFunction(MachineFunction &MF) { - // What's my mangled name? - CurrentFnName = Mang->getMangledName(MF.getFunction()); + // Get the function symbol. CurrentFnSym = GetGlobalValueSymbol(MF.getFunction()); IncrementFunctionNumber();