diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-02-11 20:53:17 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-02-11 20:53:17 +0000 |
commit | 8bb332d45dd266b9678446cea5812371d8d3e8af (patch) | |
tree | b2c2b135737155bfefac77134e2ec52f12fe8d0e | |
parent | dce5e74162e7ad16dc787057941a7b9147a70117 (diff) |
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
-rw-r--r-- | include/llvm/ADT/FoldingSet.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/ADT/FoldingSet.h b/include/llvm/ADT/FoldingSet.h index e07c0a0cea..d03d64b9ca 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); |