From 8bb332d45dd266b9678446cea5812371d8d3e8af Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 11 Feb 2009 20:53:17 +0000 Subject: [PATCH] Add FoldingSet profile method for bools. Patch by Ben Laurie! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64324 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/FoldingSet.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/llvm/ADT/FoldingSet.h b/include/llvm/ADT/FoldingSet.h index e07c0a0cea1..d03d64b9ca4 100644 --- a/include/llvm/ADT/FoldingSet.h +++ b/include/llvm/ADT/FoldingSet.h @@ -225,6 +225,7 @@ public: void AddInteger(unsigned long I); void AddInteger(long long I); void AddInteger(unsigned long long I); + void AddBoolean(bool B) { AddInteger(B ? 1U : 0U); } void AddString(const char* String, const char* End); void AddString(const std::string &String); void AddString(const char* String);