projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dce5e74
)
Add FoldingSet profile method for bools. Patch by Ben Laurie!
author
Ted Kremenek
<kremenek@apple.com>
Wed, 11 Feb 2009 20:53:17 +0000
(20:53 +0000)
committer
Ted Kremenek
<kremenek@apple.com>
Wed, 11 Feb 2009 20:53:17 +0000
(20:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64324
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/FoldingSet.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/FoldingSet.h
b/include/llvm/ADT/FoldingSet.h
index e07c0a0cea1cadd83e75a3ef08e271a4169b3f54..d03d64b9ca42c89f69b1fb8ee1dc7da0b1b96406 100644
(file)
--- 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);