Skip to content

Commit fdc5d84

Browse files
author
Mikhail Glushenkov
committed
llvmc: Make 'true' and 'false' instances of a 'Bool' class.
llvm-svn: 130915
1 parent 67ebd94 commit fdc5d84

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

llvm/include/llvm/CompilerDriver/Common.td

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,11 @@ def forward_not_split;
5656
def case;
5757

5858
// Boolean constants.
59-
def true;
60-
def false;
59+
class Bool<bit val> {
60+
bit Value = val;
61+
}
62+
def true : Bool<1>;
63+
def false : Bool<0>;
6164

6265
// Boolean operators.
6366
def and;

0 commit comments

Comments
 (0)