Is there a way of iterating through all the named types, or do I instead need to make new named types as I encounter them?<br><br><div class="gmail_quote">On Tue, Aug 14, 2012 at 4:58 PM, Eli Friedman <span dir="ltr"><<a href="mailto:eli.friedman@gmail.com" target="_blank">eli.friedman@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Tue, Aug 14, 2012 at 1:23 PM, Joe Yan <<a href="mailto:jyan2@umd.edu">jyan2@umd.edu</a>> wrote:<br>


> Hi,<br>
><br>
> I am trying to write a module pass that traverses through named structure<br>
> types defined and modifies the type of certain fields in these named types.<br>
> Is there any simple way of doing this? I am not quite sure how to get the<br>
> LLVMContext's pImpl working from a pass since LLVMContextImpl is<br>
> forward-declared.<br>
<br>
</div></div>Mutating types is unsupported, and generally a bad idea.  Make a new<br>
named type, then replace all the values which use that type with<br>
values which use the new type.<br>
<span class="HOEnZb"><font color="#888888"><br>
-Eli<br>
</font></span></blockquote></div><br>