diff options
author | Jan Voung <jvoung@chromium.org> | 2013-04-26 14:12:49 -0700 |
---|---|---|
committer | Jan Voung <jvoung@chromium.org> | 2013-04-26 14:12:49 -0700 |
commit | f8b761e8e49cf46f796510e5ef946b2a261dd45b (patch) | |
tree | 8bf885cc463da5d57ca37ef28802c83e869c61ba /include/llvm/Analysis | |
parent | 7564114a66c3d5401f5b63c6a940e7c2c2c329b6 (diff) |
Check for metadata in PNaCl ABI checker.
Disallow all metadata by default. There is a flag "-allow-debug-metadata",
which will be used in pnacl-ld driver, to not change the debugging workflow.
That flag will not be present in the pnacl-abicheck driver though.
We'll also run -strip-metadata within pnacl-ld, after optimizations are run,
so that at least that part is checked inside pnacl-ld.
CL for driver changes:
https://codereview.chromium.org/14358048/
BUG= http://code.google.com/p/nativeclient/issues/detail?id=3348
R=dschuff@chromium.org
Review URL: https://codereview.chromium.org/14329025
Diffstat (limited to 'include/llvm/Analysis')
-rw-r--r-- | include/llvm/Analysis/NaCl.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/llvm/Analysis/NaCl.h b/include/llvm/Analysis/NaCl.h index 722b4bd7a6..7821894e05 100644 --- a/include/llvm/Analysis/NaCl.h +++ b/include/llvm/Analysis/NaCl.h @@ -10,6 +10,7 @@ #ifndef LLVM_ANALYSIS_NACL_H #define LLVM_ANALYSIS_NACL_H +#include "llvm/Support/CommandLine.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/raw_ostream.h" #include <string> @@ -18,6 +19,7 @@ namespace llvm { class FunctionPass; class ModulePass; +extern cl::opt<bool> PNaClABIAllowDebugMetadata; class PNaClABIErrorReporter { public: @@ -58,8 +60,9 @@ class PNaClABIErrorReporter { bool UseFatalErrors; }; -FunctionPass *createPNaClABIVerifyFunctionsPass(PNaClABIErrorReporter * Reporter); -ModulePass *createPNaClABIVerifyModulePass(PNaClABIErrorReporter * Reporter); +FunctionPass *createPNaClABIVerifyFunctionsPass( + PNaClABIErrorReporter *Reporter); +ModulePass *createPNaClABIVerifyModulePass(PNaClABIErrorReporter *Reporter); } |