diff options
author | Sasa Stankovic <Sasa.Stankovic@imgtec.com> | 2014-02-28 10:00:38 +0000 |
---|---|---|
committer | Sasa Stankovic <Sasa.Stankovic@imgtec.com> | 2014-02-28 10:00:38 +0000 |
commit | 068a8c145ac387e4c3b8754b34b3d685b86cb7c5 (patch) | |
tree | 9f8f78c0c27c43f93375976221e58be6b3ecf068 /lib/Target/Mips/MipsAsmPrinter.h | |
parent | 72c42d93416b9aac1750389a862d569948612c53 (diff) | |
download | llvm-068a8c145ac387e4c3b8754b34b3d685b86cb7c5.tar.gz llvm-068a8c145ac387e4c3b8754b34b3d685b86cb7c5.tar.bz2 llvm-068a8c145ac387e4c3b8754b34b3d685b86cb7c5.tar.xz |
[mips] Implement NaCl sandboxing of indirect jumps:
* Align targets of indirect jumps to instruction bundle boundaries (in MI layer).
* Add masking instructions before indirect jumps (in MC layer).
Differential Revision: http://llvm-reviews.chandlerc.com/D2847
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202479 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsAsmPrinter.h')
-rw-r--r-- | lib/Target/Mips/MipsAsmPrinter.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsAsmPrinter.h b/lib/Target/Mips/MipsAsmPrinter.h index 2808b940da..c99c6d357d 100644 --- a/lib/Target/Mips/MipsAsmPrinter.h +++ b/lib/Target/Mips/MipsAsmPrinter.h @@ -73,6 +73,8 @@ private: void EmitFPCallStub(const char *, const Mips16HardFloatInfo::FuncSignature *); + void NaClAlignIndirectJumpTargets(MachineFunction &MF); + public: const MipsSubtarget *Subtarget; |