CurrentFnName is now dead, remove it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93612 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2010-01-16 01:24:10 +00:00
parent ef4e536c7e
commit 412c3a5bc9
2 changed files with 2 additions and 4 deletions

View File

@@ -131,10 +131,9 @@ namespace llvm {
/// ///
Mangler *Mang; 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(). /// beginning of each call to runOnMachineFunction().
/// ///
std::string CurrentFnName; // FIXME: REMOVE.
const MCSymbol *CurrentFnSym; const MCSymbol *CurrentFnSym;
/// getCurrentSection() - Return the current section we are emitting to. /// getCurrentSection() - Return the current section we are emitting to.

View File

@@ -231,8 +231,7 @@ bool AsmPrinter::doFinalization(Module &M) {
} }
void AsmPrinter::SetupMachineFunction(MachineFunction &MF) { void AsmPrinter::SetupMachineFunction(MachineFunction &MF) {
// What's my mangled name? // Get the function symbol.
CurrentFnName = Mang->getMangledName(MF.getFunction());
CurrentFnSym = GetGlobalValueSymbol(MF.getFunction()); CurrentFnSym = GetGlobalValueSymbol(MF.getFunction());
IncrementFunctionNumber(); IncrementFunctionNumber();