From 81937619b5da7271bdc90d47a11a6b463cbe54f0 Mon Sep 17 00:00:00 2001 From: Mikhail Glushenkov Date: Thu, 5 May 2011 04:25:03 +0000 Subject: [PATCH] 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 --- include/llvm/CompilerDriver/Common.td | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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;