Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(529)

Side by Side Diff: lib/Target/ARM/MCTargetDesc/ARMMCNaClExpander.h

Issue 1269273002: Auto sandboxing: control flow expansions for ARM (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: fixed branch through sp Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | lib/Target/ARM/MCTargetDesc/ARMMCNaClExpander.cpp » ('j') | lib/Target/ARM/MCTargetDesc/ARMMCNaClExpander.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698