[LLVMdev] hacking clang IdentifierTable

Sebastian Redl sebastian.redl at getdesigned.at
Mon Jul 26 00:26:47 PDT 2010


On 07/25/2010 11:27 PM, Yabin Hu wrote:
> Hi all,
>
> Clang use a hash table to store all its identifiers. The hash table
> definition is:
>
> typedef llvm::StringMap<IdentifierInfo*, llvm::BumpPtrAllocator>
> HashTableTy;
> HashTableTy HashTable;
>
> Can anyone explain the mechnism of handling the name string key
> collision for me? Is there a IdentifierInfo objects chain or list for
> variable or function with the same name?
>
Queries about Clang should be sent to clang-dev, not llvm-dev.

Sebastian




More information about the llvm-dev mailing list