git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119068
91177308-0d34-0410-b5e6-
96231b3b80d8
#include "llvm/ADT/SmallString.h"
using namespace llvm;
#include "llvm/ADT/SmallString.h"
using namespace llvm;
-MCSymbol *ARMMCInstLower::GetGlobalAddressSymbol(const GlobalValue *GV) const {
- return Printer.Mang->getSymbol(GV);
-}
-
MCOperand ARMMCInstLower::
GetSymbolRef(const MachineOperand &MO, const MCSymbol *Symbol) const {
const MCExpr *Expr;
MCOperand ARMMCInstLower::
GetSymbolRef(const MachineOperand &MO, const MCSymbol *Symbol) const {
const MCExpr *Expr;
MO.getMBB()->getSymbol(), Ctx));
break;
case MachineOperand::MO_GlobalAddress:
MO.getMBB()->getSymbol(), Ctx));
break;
case MachineOperand::MO_GlobalAddress:
- MCOp = GetSymbolRef(MO, GetGlobalAddressSymbol(MO.getGlobal()));
+ MCOp = GetSymbolRef(MO, Printer.Mang->getSymbol(MO.getGlobal()));
break;
case MachineOperand::MO_ExternalSymbol:
MCOp = GetSymbolRef(MO,
break;
case MachineOperand::MO_ExternalSymbol:
MCOp = GetSymbolRef(MO,
namespace llvm {
class AsmPrinter;
namespace llvm {
class AsmPrinter;
class MCAsmInfo;
class MCContext;
class MCInst;
class MCOperand;
class MCSymbol;
class MCAsmInfo;
class MCContext;
class MCInst;
class MCOperand;
class MCSymbol;
- class MachineModuleInfoMachO;
class MachineOperand;
class Mangler;
class MachineOperand;
class Mangler;
/// ARMMCInstLower - This class is used to lower an MachineInstr into an MCInst.
class LLVM_LIBRARY_VISIBILITY ARMMCInstLower {
/// ARMMCInstLower - This class is used to lower an MachineInstr into an MCInst.
class LLVM_LIBRARY_VISIBILITY ARMMCInstLower {
void Lower(const MachineInstr *MI, MCInst &OutMI) const;
private:
void Lower(const MachineInstr *MI, MCInst &OutMI) const;
private:
- MCSymbol *GetGlobalAddressSymbol(const GlobalValue *GV) const;
MCOperand GetSymbolRef(const MachineOperand &MO, const MCSymbol *Sym) const;
};
MCOperand GetSymbolRef(const MachineOperand &MO, const MCSymbol *Sym) const;
};