diff options
author | Petar Jovanovic <petar.jovanovic@rt-rk.com> | 2013-10-30 13:16:42 +0100 |
---|---|---|
committer | Petar Jovanovic <petar.jovanovic@rt-rk.com> | 2013-10-30 13:16:42 +0100 |
commit | 64ad0b18dc627d913a301088e7e517f28ec05d3f (patch) | |
tree | 7f3a558d18070c48128f527db0263489ccfb2e7c /include | |
parent | a6df9e3ab2ab7b43a6097edec19990b25ccf15b7 (diff) |
Move global FlagSfi variables to common module
When built as nexe, llc is configured and built for one arch only.
Variables FlagSfiData, FlagSfiLoad, FlagSfiStore, FlagSfiStack, and
FlagSfiBranch have to availabe for MIPS as well, so this change moves
them from ARM-only code to common code.
BUG= building pnacl-llc.nexe for MIPS fails
TEST= build sandboxed tools for MIPS
R=mseaborn@chromium.org
Review URL: https://codereview.chromium.org/46193002
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/MCNaCl.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/llvm/MC/MCNaCl.h b/include/llvm/MC/MCNaCl.h index cf9b23ec1c..654131bc04 100644 --- a/include/llvm/MC/MCNaCl.h +++ b/include/llvm/MC/MCNaCl.h @@ -7,7 +7,17 @@ // //===----------------------------------------------------------------------===// +#include "llvm/Support/CommandLine.h" + namespace llvm { + +extern cl::opt<bool> FlagSfiZeroMask; +extern cl::opt<bool> FlagSfiData; +extern cl::opt<bool> FlagSfiLoad; +extern cl::opt<bool> FlagSfiStore; +extern cl::opt<bool> FlagSfiStack; +extern cl::opt<bool> FlagSfiBranch; + class MCContext; class MCStreamer; class Triple; @@ -15,4 +25,5 @@ class Triple; /// ELF note sections. void initializeNaClMCStreamer(MCStreamer &Streamer, MCContext &Ctx, const Triple &TheTriple); + } |