And an FoldingSetImpl::NodeID::AddInteger overload for int64_t, to avoid

ambiguity.

llvm-svn: 41960
This commit is contained in:
Dan Gohman 2007-09-14 20:48:42 +00:00
parent c519c38629
commit 14cf78cde5
2 changed files with 4 additions and 0 deletions

View File

@ -149,6 +149,7 @@ public:
void AddPointer(const void *Ptr);
void AddInteger(signed I);
void AddInteger(unsigned I);
void AddInteger(int64_t I);
void AddInteger(uint64_t I);
void AddFloat(float F);
void AddDouble(double D);

View File

@ -40,6 +40,9 @@ void FoldingSetImpl::NodeID::AddInteger(signed I) {
void FoldingSetImpl::NodeID::AddInteger(unsigned I) {
Bits.push_back(I);
}
void FoldingSetImpl::NodeID::AddInteger(int64_t I) {
AddInteger((uint64_t)I);
}
void FoldingSetImpl::NodeID::AddInteger(uint64_t I) {
Bits.push_back(unsigned(I));