[LLVMdev] StructTypes in module
Chris Lattner
clattner at apple.com
Wed Aug 31 15:36:21 PDT 2011
On Aug 31, 2011, at 12:00 PM, Carlo Alberto Ferraris wrote:
> Nella citazione mercoledì 31 agosto 2011 20:35:46, Chris Lattner ha scritto:
>> 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.
> Thanks! By any chance, is there also a way (short of iterating on all instructions and globals) to find all "uses" of a structtype?
Nope, sorry.
-Chris
More information about the llvm-dev
mailing list