Add explicit keywords.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47382 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman
2008-02-20 16:44:09 +00:00
parent 948d8eadec
commit b5660dc822
6 changed files with 10 additions and 8 deletions

View File

@ -57,9 +57,9 @@ AnnotationID AnnotationManager::getID(const std::string &Name) { // Name -> ID
IDMapType::iterator I = IDMap->find(Name);
if (I == IDMap->end()) {
(*IDMap)[Name] = IDCounter++; // Add a new element
return IDCounter-1;
return AnnotationID(IDCounter-1);
}
return I->second;
return AnnotationID(I->second);
}
// getID - Name -> ID + registration of a factory function for demand driven