diff options
author | Mark Seaborn <mseaborn@chromium.org> | 2013-04-01 09:33:02 -0700 |
---|---|---|
committer | Mark Seaborn <mseaborn@chromium.org> | 2013-04-01 09:33:02 -0700 |
commit | a6c4b28460c42bc9fbbdcefffb4aed603f07f068 (patch) | |
tree | 2dcc9c33b3e267c01e822130de5bdba3adc511cf /tools/opt/opt.cpp | |
parent | cd93e1afec966dba60433f8df5f78f10ef217f93 (diff) |
PNaCl: Allow the ABI checker to be used from "opt"
This allows the ABI checker passes to be used in the same way as
LLVM's "-verify" pass. It allows the checker to be run between other
passes, and without launching pnacl-abicheck as a separate process (so
without the overhead of reading bitcode into memory again).
Make the ABI checker passes produce fatal errors by default, to match
"-verify". This is overridden for pnacl-abicheck's use.
BUG=https://code.google.com/p/nativeclient/issues/detail?id=2309
TEST=tested with pnacl-ld.py changes to use the ABI checker passes
Review URL: https://codereview.chromium.org/13323006
Diffstat (limited to 'tools/opt/opt.cpp')
-rw-r--r-- | tools/opt/opt.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 106da562c6..2998a047cf 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -584,6 +584,8 @@ int main(int argc, char **argv) { initializeExpandTlsConstantExprPass(Registry); initializeExpandVarArgsPass(Registry); initializeGlobalCleanupPass(Registry); + initializePNaClABIVerifyFunctionsPass(Registry); + initializePNaClABIVerifyModulePass(Registry); initializeResolveAliasesPass(Registry); initializeStripMetadataPass(Registry); // @LOCALMOD-END |