summaryrefslogtreecommitdiffstats
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
commitfdc5d84ba37917e4e4ccb7b41892572fb993b301 (patch)
treed750d00516ba2bac568e9b23dded9bec7cbfc6f9
parent67ebd94a5d9326c2e1f714fa7a9ca479c2d50a13 (diff)
downloadbcm5719-llvm-fdc5d84ba37917e4e4ccb7b41892572fb993b301.tar.gz
bcm5719-llvm-fdc5d84ba37917e4e4ccb7b41892572fb993b301.zip
llvmc: Make 'true' and 'false' instances of a 'Bool' class.
llvm-svn: 130915
-rw-r--r--llvm/include/llvm/CompilerDriver/Common.td7
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/include/llvm/CompilerDriver/Common.td b/llvm/include/llvm/CompilerDriver/Common.td
index 84e8783d20a..6ba30aaa640 100644
--- a/llvm/include/llvm/CompilerDriver/Common.td
+++ b/llvm/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;
OpenPOWER on IntegriCloud