From: Ted Kremenek Date: Wed, 11 Feb 2009 20:53:17 +0000 (+0000) Subject: Add FoldingSet profile method for bools. Patch by Ben Laurie! X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8bb332d45dd266b9678446cea5812371d8d3e8af;p=oota-llvm.git 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 --- 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);