[LLVMdev] hacking clang IdentifierTable
Yabin Hu
yabin.hwu at gmail.com
Sun Jul 25 23:27:27 PDT 2010
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?
Thanks very much!
Yabin
--
The question is how do you generate these offline annotations and how
expensive and accurate they are and why they are usefil in which
applications?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100726/73026dc0/attachment.html>
More information about the llvm-dev
mailing list