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

Side by Side Diff: src/IceBuildDefs.h

Issue 1215463014: Modify how textual bitcode is injected into pnacl-sz. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 5 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 //===- subzero/src/IceBuildDefs.h - Translator build defines ----*- C++ -*-===// 1 //===- subzero/src/IceBuildDefs.h - Translator build defines ----*- C++ -*-===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
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 /// \file 10 /// \file
11 /// This file defines constexpr functions to query various #define values. 11 /// This file defines constexpr functions to query various #define values.
12 /// 12 ///
13 //===----------------------------------------------------------------------===// 13 //===----------------------------------------------------------------------===//
14 14
15 #ifndef SUBZERO_SRC_ICEBUILDDEFS_H 15 #ifndef SUBZERO_SRC_ICEBUILDDEFS_H
16 #define SUBZERO_SRC_ICEBUILDDEFS_H 16 #define SUBZERO_SRC_ICEBUILDDEFS_H
17 17
18 namespace Ice { 18 namespace Ice {
19 namespace BuildDefs { 19 namespace BuildDefs {
20 20
21 // The ALLOW_* etc. symbols must be #defined to zero or non-zero. 21 // The ALLOW_* etc. symbols must be #defined to zero or non-zero.
22 constexpr bool disableIrGen() { return ALLOW_DISABLE_IR_GEN; } 22 constexpr bool disableIrGen() { return ALLOW_DISABLE_IR_GEN; }
23 constexpr bool dump() { return ALLOW_DUMP; } 23 constexpr bool dump() { return ALLOW_DUMP; }
24 constexpr bool llvmCl() { return ALLOW_LLVM_CL; } 24 constexpr bool llvmCl() { return ALLOW_LLVM_CL; }
25 constexpr bool llvmIr() { return ALLOW_LLVM_IR; } 25 constexpr bool llvmIr() { return ALLOW_LLVM_IR; }
26 constexpr bool llvmIrAsInput() { return ALLOW_LLVM_IR_AS_INPUT; } 26 constexpr bool llvmIrAsInput() { return ALLOW_LLVM_IR_AS_INPUT; }
27 constexpr bool minimal() { return ALLOW_MINIMAL_BUILD; } 27 constexpr bool minimal() { return ALLOW_MINIMAL_BUILD; }
28 constexpr bool textualBitcode() { return INPUT_IS_TEXTUAL_BITCODE; } 28 constexpr bool textualBitcode() { return ACCEPT_TEXTUAL_PNACL_BITCODE; }
Jim Stichnoth 2015/07/10 18:04:23 Consider prefixing with ALLOW_ instead of ACCEPT_
Karl 2015/07/21 21:07:01 Removed. Using command line argument to control wh
29 29
30 // NDEBUG can be undefined, or defined to something arbitrary. 30 // NDEBUG can be undefined, or defined to something arbitrary.
31 constexpr bool asserts() { 31 constexpr bool asserts() {
32 #ifdef NDEBUG 32 #ifdef NDEBUG
33 return false; 33 return false;
34 #else // !NDEBUG 34 #else // !NDEBUG
35 return true; 35 return true;
36 #endif // !NDEBUG 36 #endif // !NDEBUG
37 } 37 }
38 38
39 // ALLOW_EXTRA_VALIDATION can be undefined, or defined to something non-zero. 39 // ALLOW_EXTRA_VALIDATION can be undefined, or defined to something non-zero.
40 constexpr bool extraValidation() { 40 constexpr bool extraValidation() {
41 #if ALLOW_EXTRA_VALIDATION 41 #if ALLOW_EXTRA_VALIDATION
42 return true; 42 return true;
43 #else // !ALLOW_EXTRA_VALIDATION 43 #else // !ALLOW_EXTRA_VALIDATION
44 return false; 44 return false;
45 #endif // !ALLOW_EXTRA_VALIDATION 45 #endif // !ALLOW_EXTRA_VALIDATION
46 } 46 }
47 47
48 } // end of namespace BuildDefs 48 } // end of namespace BuildDefs
49 } // end of namespace Ice 49 } // end of namespace Ice
50 50
51 #endif // SUBZERO_SRC_ICEBUILDDEFS_H 51 #endif // SUBZERO_SRC_ICEBUILDDEFS_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698