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

Side by Side Diff: src/IceBuildDefs.h

Issue 1522433004: eliminate code related to --no-ir-gen (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: changes suggested by stichnot Created 5 years 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 /// \brief Defines constexpr functions to query various #define values. 11 /// \brief 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; }
Jim Stichnoth 2015/12/12 15:43:42 Rebase from master and fix resulting conflicts. :(
Jim Stichnoth 2015/12/13 15:55:20 BTW, for me "make format" is reformatting the vers
rkotlerimgtec 2015/12/14 03:12:11 Done.
rkotlerimgtec 2015/12/14 03:12:11 Done.
23 constexpr bool dump() { return ALLOW_DUMP; } 22 constexpr bool dump() { return ALLOW_DUMP; }
24 constexpr bool llvmCl() { return ALLOW_LLVM_CL; } 23 constexpr bool llvmCl() { return ALLOW_LLVM_CL; }
25 constexpr bool llvmIr() { return ALLOW_LLVM_IR; } 24 constexpr bool llvmIr() { return ALLOW_LLVM_IR; }
26 constexpr bool llvmIrAsInput() { return ALLOW_LLVM_IR_AS_INPUT; } 25 constexpr bool llvmIrAsInput() { return ALLOW_LLVM_IR_AS_INPUT; }
27 constexpr bool minimal() { return ALLOW_MINIMAL_BUILD; } 26 constexpr bool minimal() { return ALLOW_MINIMAL_BUILD; }
28 27
29 // NDEBUG can be undefined, or defined to something arbitrary. 28 // NDEBUG can be undefined, or defined to something arbitrary.
30 constexpr bool asserts() { 29 constexpr bool asserts() {
31 #ifdef NDEBUG 30 #ifdef NDEBUG
32 return false; 31 return false;
(...skipping 18 matching lines...) Expand all
51 return true; 50 return true;
52 #else // !ALLOW_EXTRA_VALIDATION 51 #else // !ALLOW_EXTRA_VALIDATION
53 return false; 52 return false;
54 #endif // !ALLOW_EXTRA_VALIDATION 53 #endif // !ALLOW_EXTRA_VALIDATION
55 } 54 }
56 55
57 } // end of namespace BuildDefs 56 } // end of namespace BuildDefs
58 } // end of namespace Ice 57 } // end of namespace Ice
59 58
60 #endif // SUBZERO_SRC_ICEBUILDDEFS_H 59 #endif // SUBZERO_SRC_ICEBUILDDEFS_H
OLDNEW
« no previous file with comments | « Makefile.standalone ('k') | src/IceClFlags.h » ('j') | src/IceClFlags.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698