mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-08 12:21:04 +00:00
Fix a hidden use of grabbing the Mangler from the AsmPrinter and update
accordingly. llvm-svn: 281748
This commit is contained in:
parent
21a9844262
commit
001e8b342a
@ -34,10 +34,10 @@ static MachineModuleInfoMachO &getMachOMMI(AsmPrinter &AP) {
|
||||
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(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;
|
||||
|
Loading…
Reference in New Issue
Block a user