aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CompilerDriver
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2011-05-05 04:25:03 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2011-05-05 04:25:03 +0000
commit81937619b5da7271bdc90d47a11a6b463cbe54f0 (patch)
treec66baac963de628220fa27878149d4f0c6448ae5 /include/llvm/CompilerDriver
parent3a21c55a1468ddb436b692ca4f04b747a1cb4b09 (diff)
llvmc: Make 'true' and 'false' instances of a 'Bool' class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130915 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CompilerDriver')
-rw-r--r--include/llvm/CompilerDriver/Common.td7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/llvm/CompilerDriver/Common.td b/include/llvm/CompilerDriver/Common.td
index 84e8783d20..6ba30aaa64 100644
--- a/include/llvm/CompilerDriver/Common.td
+++ b/include/llvm/CompilerDriver/Common.td
@@ -56,8 +56,11 @@ def forward_not_split;
def case;
// Boolean constants.
-def true;
-def false;
+class Bool<bit val> {
+ bit Value = val;
+}
+def true : Bool<1>;
+def false : Bool<0>;
// Boolean operators.
def and;