Teemu Rinta-aho
2010-Sep-23 14:39 UTC
[LLVMdev] Mapping C++ class names to LLVM type names?
Hi, We are writing a utility whose input includes the names of some C++ classes, and we want to locate the corresponding LLVM types in the current module. I'm trying to look through LLVM and clang sources but cannot figure out how the LLVM type names are constructed for the C++ class names. Any help appreciated (like the name of a library call to do it or even a pointer to code where this mapping is done (in clang?)). BR, Teemu -- Teemu Rinta-aho Tel: +358 9 299 3078 Ericsson Research Mobile: +358 40 562 3066 Oy L M Ericsson Ab Fax: +358 9 299 3535 02420 Jorvas, Finland E-mail: teemu.rinta-aho at nomadiclab.com
Anton Korobeynikov
2010-Sep-23 15:51 UTC
[LLVMdev] Mapping C++ class names to LLVM type names?
Hello> We are writing a utility whose input includes the names of some C++ classes, > and we want to locate the corresponding LLVM types in the current module.The LLVM typename for given class can be arbitrary due to structure equivalence in LLVM type system. Also, the name of LLVM type does not contain any semantic information, it can be dropped w/o any visible effect. For your purposes you should use debug info. -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University