llvm.org GIT mirror llvm / b16ddb1
more shrinkification git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119068 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 9 years ago
2 changed file(s) with 1 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
2424 #include "llvm/Support/raw_ostream.h"
2525 #include "llvm/ADT/SmallString.h"
2626 using namespace llvm;
27
28 MCSymbol *ARMMCInstLower::GetGlobalAddressSymbol(const GlobalValue *GV) const {
29 return Printer.Mang->getSymbol(GV);
30 }
3127
3228 MCOperand ARMMCInstLower::
3329 GetSymbolRef(const MachineOperand &MO, const MCSymbol *Symbol) const {
8177 MO.getMBB()->getSymbol(), Ctx));
8278 break;
8379 case MachineOperand::MO_GlobalAddress:
84 MCOp = GetSymbolRef(MO, GetGlobalAddressSymbol(MO.getGlobal()));
80 MCOp = GetSymbolRef(MO, Printer.Mang->getSymbol(MO.getGlobal()));
8581 break;
8682 case MachineOperand::MO_ExternalSymbol:
8783 MCOp = GetSymbolRef(MO,
1313
1414 namespace llvm {
1515 class AsmPrinter;
16 class GlobalValue;
1716 class MCAsmInfo;
1817 class MCContext;
1918 class MCInst;
2019 class MCOperand;
2120 class MCSymbol;
22 class MCSymbolRefExpr;
2321 class MachineInstr;
24 class MachineModuleInfoMachO;
2522 class MachineOperand;
2623 class Mangler;
27 //class ARMSubtarget;
2824
2925 /// ARMMCInstLower - This class is used to lower an MachineInstr into an MCInst.
3026 class LLVM_LIBRARY_VISIBILITY ARMMCInstLower {
3834 void Lower(const MachineInstr *MI, MCInst &OutMI) const;
3935
4036 private:
41 MCSymbol *GetGlobalAddressSymbol(const GlobalValue *GV) const;
4237 MCOperand GetSymbolRef(const MachineOperand &MO, const MCSymbol *Sym) const;
4338 };
4439