From: Mikhail Glushenkov Date: Thu, 5 May 2011 04:25:03 +0000 (+0000) Subject: llvmc: Make 'true' and 'false' instances of a 'Bool' class. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=81937619b5da7271bdc90d47a11a6b463cbe54f0;p=oota-llvm.git 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 84e8783d20a..6ba30aaa640 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 Value = val; +} +def true : Bool<1>; +def false : Bool<0>; // Boolean operators. def and;