| 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/Support/CommandLine.h" | 13 #include "llvm/Support/CommandLine.h" |
| 14 #include "llvm/Support/ErrorHandling.h" | 14 #include "llvm/Support/ErrorHandling.h" |
| 15 #include "llvm/Support/raw_ostream.h" | 15 #include "llvm/Support/raw_ostream.h" |
| 16 #include <string> | 16 #include <string> |
| 17 | 17 |
| 18 namespace llvm { | 18 namespace llvm { |
| 19 | 19 |
| 20 class FunctionPass; | 20 class FunctionPass; |
| 21 class ModulePass; | 21 class ModulePass; |
| 22 extern cl::opt<bool> PNaClABIAllowDebugMetadata; | 22 extern cl::opt<bool> PNaClABIAllowDebugMetadata; |
| 23 | 23 |
| 24 class PNaClABIErrorReporter { | 24 class PNaClABIErrorReporter { |
| 25 PNaClABIErrorReporter(const PNaClABIErrorReporter&) LLVM_DELETED_FUNCTION; | 25 PNaClABIErrorReporter(const PNaClABIErrorReporter&) = delete; |
| 26 void operator=(const PNaClABIErrorReporter&) LLVM_DELETED_FUNCTION; | 26 void operator=(const PNaClABIErrorReporter&) = delete; |
| 27 public: | 27 public: |
| 28 PNaClABIErrorReporter() : ErrorCount(0), Errors(ErrorString), | 28 PNaClABIErrorReporter() : ErrorCount(0), Errors(ErrorString), |
| 29 UseFatalErrors(true) {} | 29 UseFatalErrors(true) {} |
| 30 ~PNaClABIErrorReporter() {} | 30 ~PNaClABIErrorReporter() {} |
| 31 // Return the number of verification errors from the last run. | 31 // Return the number of verification errors from the last run. |
| 32 int getErrorCount() const { return ErrorCount; } | 32 int getErrorCount() const { return ErrorCount; } |
| 33 // Print the error messages to O | 33 // Print the error messages to O |
| 34 void printErrors(llvm::raw_ostream &O) { | 34 void printErrors(llvm::raw_ostream &O) { |
| 35 Errors.flush(); | 35 Errors.flush(); |
| 36 O << ErrorString; | 36 O << ErrorString; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 65 | 65 |
| 66 FunctionPass *createPNaClABIVerifyFunctionsPass( | 66 FunctionPass *createPNaClABIVerifyFunctionsPass( |
| 67 PNaClABIErrorReporter *Reporter); | 67 PNaClABIErrorReporter *Reporter); |
| 68 ModulePass *createPNaClABIVerifyModulePass(PNaClABIErrorReporter *Reporter, | 68 ModulePass *createPNaClABIVerifyModulePass(PNaClABIErrorReporter *Reporter, |
| 69 bool StreamingMode = false); | 69 bool StreamingMode = false); |
| 70 | 70 |
| 71 } | 71 } |
| 72 | 72 |
| 73 | 73 |
| 74 #endif | 74 #endif |
| OLD | NEW |