CurrentFnName is now dead, remove it.
authorChris Lattner <sabre@nondot.org>
Sat, 16 Jan 2010 01:24:10 +0000 (01:24 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 16 Jan 2010 01:24:10 +0000 (01:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93612 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/AsmPrinter.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp

index d3df48ead2b0f3cac249546b61d044765d3dc18d..8c1acab3aa0095f8b75b5852e8e05746bf43dd3b 100644 (file)
@@ -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.
index 577d173ff13ba2677748781428edbb305f40d0a5..dd25437a20fc4611b4edfd7abc7120f59b3cc515 100644 (file)
@@ -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();