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

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

Issue 12449014: ABI verifier: Add standalone tool pnacl-abicheck (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Created 7 years, 9 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/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
OLDNEW
« no previous file with comments | « no previous file | lib/Analysis/NaCl/PNaClABIVerifyFunctions.cpp » ('j') | lib/Analysis/NaCl/PNaClABIVerifyModule.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698