Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 //===-- NaCl.h - NaCl Analysis ---------------------------*- C++ -*-===// | 1 //===-- NaCl.h - NaCl Analysis ---------------------------*- 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 #ifndef LLVM_ANALYSIS_NACL_H | 10 #ifndef LLVM_ANALYSIS_NACL_H |
| 11 #define LLVM_ANALYSIS_NACL_H | 11 #define LLVM_ANALYSIS_NACL_H |
| 12 | 12 |
| 13 #include "llvm/Pass.h" | |
| 14 | |
| 13 namespace llvm { | 15 namespace llvm { |
| 14 | 16 |
| 15 class FunctionPass; | 17 // Interface to get verification results from module verifier passes. |
| 16 class ModulePass; | 18 // Separated from the logic of the pass itself to |
|
Mark Seaborn
2013/03/12 22:25:56
Incomplete sentence?
Derek Schuff
2013/03/13 21:51:01
Done.
| |
| 19 class PNaClABIVerifierPass { | |
| 20 public: | |
| 21 // ABI verifier errors will immediately print out the error and | |
| 22 // cause the pass to return true, aborting compilation. Call before running. | |
| 23 virtual void setStrict(bool Strict) = 0; | |
| 24 // Return the number of errors from the | |
|
Mark Seaborn
2013/03/12 22:25:56
ditto
Derek Schuff
2013/03/13 21:51:01
Done.
| |
| 25 virtual int getErrorCount() = 0; | |
| 26 }; | |
| 17 | 27 |
| 18 FunctionPass *createPNaClABIVerifyFunctionsPass(); | 28 FunctionPass *createPNaClABIVerifyFunctionsPass(bool Strict); |
| 19 ModulePass *createPNaClABIVerifyModulePass(); | 29 ModulePass *createPNaClABIVerifyModulePass(bool Strict); |
| 20 | 30 |
| 21 } | 31 } |
| 22 | 32 |
| 23 | 33 |
| 24 #endif | 34 #endif |
| OLD | NEW |