mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-26 14:25:18 +00:00
Fix a hidden use of grabbing the Mangler from the AsmPrinter and update
accordingly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281748 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8dff0d8b85
commit
7bbc777d2e
@ -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…
x
Reference in New Issue
Block a user