diff --git a/lib/Target/PowerPC/PPCMCInstLower.cpp b/lib/Target/PowerPC/PPCMCInstLower.cpp index 18377a44a7f..e527b018d4f 100644 --- a/lib/Target/PowerPC/PPCMCInstLower.cpp +++ b/lib/Target/PowerPC/PPCMCInstLower.cpp @@ -34,10 +34,10 @@ static MachineModuleInfoMachO &getMachOMMI(AsmPrinter &AP) { return AP.MMI->getObjFileInfo(); } - -static MCSymbol *GetSymbolFromOperand(const MachineOperand &MO, AsmPrinter &AP){ +static MCSymbol *GetSymbolFromOperand(const MachineOperand &MO, + AsmPrinter &AP) { const TargetMachine &TM = AP.TM; - Mangler *Mang = AP.Mang; + Mangler &Mang = TM.getObjFileLowering()->getMangler(); const DataLayout &DL = AP.getDataLayout(); MCContext &Ctx = AP.OutContext; @@ -54,7 +54,7 @@ static MCSymbol *GetSymbolFromOperand(const MachineOperand &MO, AsmPrinter &AP){ Mangler::getNameWithPrefix(Name, MO.getSymbolName(), DL); } else { const GlobalValue *GV = MO.getGlobal(); - TM.getNameWithPrefix(Name, GV, *Mang); + TM.getNameWithPrefix(Name, GV, Mang); } Name += Suffix;