Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: include/llvm/Analysis/NaCl.h

Issue 1151093004: Changes from 3.7 merge to files not in upstream (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | include/llvm/Analysis/NaCl/PNaClABIProps.h » ('j') | include/llvm/Bitcode/NaCl/NaClBitcodeDist.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698