mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-10 14:12:11 +00:00
more shrinkification
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119068 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
de36af4c15
commit
b16ddb1fb3
@ -26,10 +26,6 @@
|
||||
#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;
|
||||
@ -82,7 +78,7 @@ void ARMMCInstLower::Lower(const MachineInstr *MI, MCInst &OutMI) const {
|
||||
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,
|
||||
|
@ -14,18 +14,14 @@
|
||||
|
||||
namespace llvm {
|
||||
class AsmPrinter;
|
||||
class GlobalValue;
|
||||
class MCAsmInfo;
|
||||
class MCContext;
|
||||
class MCInst;
|
||||
class MCOperand;
|
||||
class MCSymbol;
|
||||
class MCSymbolRefExpr;
|
||||
class MachineInstr;
|
||||
class MachineModuleInfoMachO;
|
||||
class MachineOperand;
|
||||
class Mangler;
|
||||
//class ARMSubtarget;
|
||||
|
||||
/// ARMMCInstLower - This class is used to lower an MachineInstr into an MCInst.
|
||||
class LLVM_LIBRARY_VISIBILITY ARMMCInstLower {
|
||||
@ -39,7 +35,6 @@ public:
|
||||
void Lower(const MachineInstr *MI, MCInst &OutMI) const;
|
||||
|
||||
private:
|
||||
MCSymbol *GetGlobalAddressSymbol(const GlobalValue *GV) const;
|
||||
MCOperand GetSymbolRef(const MachineOperand &MO, const MCSymbol *Sym) const;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user