| OLD | NEW |
| 1 //===- ARMMCNaClExpander.h --------------------------------------*- C++ -*-===// | 1 //===- ARMMCNaClExpander.h --------------------------------------*- C++ -*-===// |
| 2 // | 2 // |
| 3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 // | 9 // |
| 10 // This file declares the ARMMCNaClExpander class, the ARM specific | 10 // This file declares the ARMMCNaClExpander class, the ARM specific |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 class ARMMCNaClExpander : public MCNaClExpander { | 29 class ARMMCNaClExpander : public MCNaClExpander { |
| 30 public: | 30 public: |
| 31 ARMMCNaClExpander(const MCContext &Ctx, std::unique_ptr<MCRegisterInfo> &&RI, | 31 ARMMCNaClExpander(const MCContext &Ctx, std::unique_ptr<MCRegisterInfo> &&RI, |
| 32 std::unique_ptr<MCInstrInfo> &&II) | 32 std::unique_ptr<MCInstrInfo> &&II) |
| 33 : MCNaClExpander(Ctx, std::move(RI), std::move(II)) {} | 33 : MCNaClExpander(Ctx, std::move(RI), std::move(II)) {} |
| 34 | 34 |
| 35 bool expandInst(const MCInst &Inst, MCStreamer &Out, | 35 bool expandInst(const MCInst &Inst, MCStreamer &Out, |
| 36 const MCSubtargetInfo &STI) override; | 36 const MCSubtargetInfo &STI) override; |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 bool Guard = false; // recursion Guard | 39 bool Guard = false; // recursion guard |
| 40 int SaveCount = 0; |
| 41 |
| 42 void expandIndirectBranch(const MCInst &Inst, MCStreamer &Out, |
| 43 const MCSubtargetInfo &STI, bool isCall); |
| 44 |
| 45 void expandCall(const MCInst &Inst, MCStreamer &Out, |
| 46 const MCSubtargetInfo &STI); |
| 40 | 47 |
| 41 void doExpandInst(const MCInst &Inst, MCStreamer &Out, | 48 void doExpandInst(const MCInst &Inst, MCStreamer &Out, |
| 42 const MCSubtargetInfo &STI); | 49 const MCSubtargetInfo &STI); |
| 43 }; | 50 }; |
| 44 } | 51 } |
| 45 } | 52 } |
| 46 #endif | 53 #endif |
| OLD | NEW |