<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>Forward reference in type declarations in LLVM 1.9</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">%TCDef = type { [16 x ubyte], [16 x ubyte], [16 x ubyte], [16 x ubyte], [64 x ubyte], ushort, %anonymous.5, %anonymous.5, %anonymous.5, uint, uint, uint, ushort, uint, uint, uint, uint }</FONT></P>
<P><FONT SIZE=2 FACE="Arial">%anonymous.5 = type { ubyte, ubyte, ubyte, ubyte }</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I have a parser that reads LL files but doesn’t handle forward references to structure types. I've been using 1.9 for quite a while and have just now bumped into this. Are there any options available for llvm-dis to emit complete types first? Perhaps there's another approach to get the optimizer and/or other tools to keep all the input types and retain their declaration order? I see there's an opton -deadtypeelim to the optimizer. I tried -nodeadtypeelim and -deadtypeelim=0 and -deadtypeelim=false, but it doesn't appear to accept any of those.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Thanks for your help.</FONT>
</P>
<BR>
</BODY>
</HTML>