[LLVMdev] StructTypes in module

Chris Lattner clattner at apple.com
Wed Aug 31 11:35:46 PDT 2011


On Aug 31, 2011, at 10:23 AM, Carlo Alberto Ferraris wrote:

> Quick question: how do I get a list of StructType* defined/used in a Module? I can't seem to find an appropriate iterator in the Module class...

Module::findUsedStructTypes.  Note that this requires scanning the entire module, it is not an efficient operation.

-Chris




More information about the llvm-dev mailing list