commit | 81937619b5da7271bdc90d47a11a6b463cbe54f0 | [log] [tgz] |
---|---|---|
author | Mikhail Glushenkov <foldr@codedgers.com> | Thu May 05 04:25:03 2011 +0000 |
committer | Mikhail Glushenkov <foldr@codedgers.com> | Thu May 05 04:25:03 2011 +0000 |
tree | c66baac963de628220fa27878149d4f0c6448ae5 | |
parent | 3a21c55a1468ddb436b692ca4f04b747a1cb4b09 [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
diff --git a/include/llvm/CompilerDriver/Common.td b/include/llvm/CompilerDriver/Common.td index 84e8783..6ba30aa 100644 --- a/include/llvm/CompilerDriver/Common.td +++ b/include/llvm/CompilerDriver/Common.td
@@ -56,8 +56,11 @@ 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;