mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Add a helper getSymbol to AsmPrinter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193627 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -99,7 +99,7 @@ void HexagonAsmPrinter::printOperand(const MachineInstr *MI, unsigned OpNo,
|
||||
return;
|
||||
case MachineOperand::MO_GlobalAddress:
|
||||
// Computing the address of a global symbol, not calling it.
|
||||
O << *Mang->getSymbol(MO.getGlobal());
|
||||
O << *getSymbol(MO.getGlobal());
|
||||
printOffset(MO.getOffset(), O);
|
||||
return;
|
||||
}
|
||||
@@ -267,7 +267,7 @@ void HexagonAsmPrinter::printGlobalOperand(const MachineInstr *MI, int OpNo,
|
||||
assert( (MO.getType() == MachineOperand::MO_GlobalAddress) &&
|
||||
"Expecting global address");
|
||||
|
||||
O << *Mang->getSymbol(MO.getGlobal());
|
||||
O << *getSymbol(MO.getGlobal());
|
||||
if (MO.getOffset() != 0) {
|
||||
O << " + ";
|
||||
O << MO.getOffset();
|
||||
|
@@ -73,7 +73,7 @@ void llvm::HexagonLowerToMC(const MachineInstr* MI, HexagonMCInst& MCI,
|
||||
AP.OutContext));
|
||||
break;
|
||||
case MachineOperand::MO_GlobalAddress:
|
||||
MCO = GetSymbolRef(MO, AP.Mang->getSymbol(MO.getGlobal()), AP);
|
||||
MCO = GetSymbolRef(MO, AP.getSymbol(MO.getGlobal()), AP);
|
||||
break;
|
||||
case MachineOperand::MO_ExternalSymbol:
|
||||
MCO = GetSymbolRef(MO, AP.GetExternalSymbolSymbol(MO.getSymbolName()),
|
||||
|
Reference in New Issue
Block a user