[llvm] r281748 - Fix a hidden use of grabbing the Mangler from the AsmPrinter and update
Eric Christopher via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 16 10:07:13 PDT 2016
Author: echristo
Date: Fri Sep 16 12:07:13 2016
New Revision: 281748
URL: http://llvm.org/viewvc/llvm-project?rev=281748&view=rev
Log:
Fix a hidden use of grabbing the Mangler from the AsmPrinter and update
accordingly.
Modified:
llvm/trunk/lib/Target/PowerPC/PPCMCInstLower.cpp
Modified: llvm/trunk/lib/Target/PowerPC/PPCMCInstLower.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCMCInstLower.cpp?rev=281748&r1=281747&r2=281748&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCMCInstLower.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCMCInstLower.cpp Fri Sep 16 12:07:13 2016
@@ -34,10 +34,10 @@ static MachineModuleInfoMachO &getMachOM
return AP.MMI->getObjFileInfo<MachineModuleInfoMachO>();
}
-
-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(co
Mangler::getNameWithPrefix(Name, MO.getSymbolName(), DL);
} else {
const GlobalValue *GV = MO.getGlobal();
- TM.getNameWithPrefix(Name, GV, *Mang);
+ TM.getNameWithPrefix(Name, GV, Mang);
}
Name += Suffix;
More information about the llvm-commits
mailing list