[cfe-dev] how to get c++ name for llvm::Type

Jochen Wilhelmy j.wilhelmy at arcor.de
Wed Jul 7 08:44:40 PDT 2010


Hi!

if I compile code from c++ to llvm using clang I want to reverse-lookup
the type names of some simple structures e.g.
struct Foo
{
     int bar;
};

I would need a function that returns the name or clang::TagDecl
given the llvm::Type.

How can this be done?

-Jochen




More information about the cfe-dev mailing list