diff options
Diffstat (limited to 'lib/Target/MSP430/AsmPrinter/MSP430MCInstLower.h')
-rw-r--r-- | lib/Target/MSP430/AsmPrinter/MSP430MCInstLower.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/lib/Target/MSP430/AsmPrinter/MSP430MCInstLower.h b/lib/Target/MSP430/AsmPrinter/MSP430MCInstLower.h index c6b0c3e..d2a76b9 100644 --- a/lib/Target/MSP430/AsmPrinter/MSP430MCInstLower.h +++ b/lib/Target/MSP430/AsmPrinter/MSP430MCInstLower.h @@ -27,17 +27,22 @@ namespace llvm { /// into an MCInst. class VISIBILITY_HIDDEN MSP430MCInstLower { MCContext &Ctx; - Mangler *Mang; + Mangler &Mang; - #if 0 const unsigned CurFunctionNumber; const MCAsmInfo &MAI; - #endif public: - MSP430MCInstLower(MCContext &ctx, Mangler *mang) : Ctx(ctx), Mang(mang) {} - + MSP430MCInstLower(MCContext &ctx, Mangler &mang, unsigned FuncNum, + const MCAsmInfo &mai) + : Ctx(ctx), Mang(mang), CurFunctionNumber(FuncNum), MAI(mai) {} void Lower(const MachineInstr *MI, MCInst &OutMI) const; + + MCOperand LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const; + + MCSymbol *GetGlobalAddressSymbol(const MachineOperand &MO) const; + MCSymbol *GetJumpTableSymbol(const MachineOperand &MO) const; + MCSymbol *GetConstantPoolIndexSymbol(const MachineOperand &MO) const; }; } |